<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Windows Server</title>
        <link>http://blippy.net/blog/category/7.aspx</link>
        <description>Windows Server</description>
        <language>en-US</language>
        <copyright>Miguel Garrido</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>Know about WinRM (Remote Management) and WinRS (Remote Shell)</title>
            <link>http://blippy.net/blog/archive/2010/01/19/know-about-winrm-remote-management-and-winrs-remote-shell.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt;  &lt;p&gt;I just recently migrated my data to another machine (to use as a file server) since it has a &lt;a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16816111044" target="_blank"&gt;Sans Digital NAS&lt;/a&gt; attached to it. Normally working with files across the network (I now map a shared drive to the share on the server) is perfectly acceptable – however, there are some operations better left on the remote machine, for instance: extracting or compressing [rar/zip] archives.&lt;/p&gt;  &lt;p&gt;Ideally, I’d prefer to have a solution where I can (in this case) right click on an item on my machine and run a command on the remote machine, and with WinRS and some programming I may get it done eventually, but in the meantime as a quick and dirty solution I set up WinRM on both machines and I currently start a command prompt instance using WinRS and I can use the command line rar.exe or 7za.exe for dealing with archives on the remote machine.&lt;/p&gt;  &lt;p&gt;TechNet has more &lt;a href="http://msdn.microsoft.com/en-us/library/aa384372%28VS.85%29.aspx" target="_blank"&gt;information on WinRM and WinRS&lt;/a&gt;, for brevity I am just going to outline what I had to do to get my current solution working:&lt;/p&gt;  &lt;p&gt;First, from an administrative [read: elevated, if applicable] command prompt execute: &lt;strong&gt;winrm quickconfig&lt;/strong&gt; on both machines, answering each prompt with &lt;em&gt;yes.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;If the machines are domain joined then they already trust each other thanks to Kerberos, however if the machines are part of a workgroup you need to tell each machine to trust the other by executing: &lt;strong&gt;winrm set winrm/config/client @{TrustedHosts=”%remotecomputername%”}&lt;/strong&gt;. (Note: replace %remotecomputername% with the hostname of the remote computer.)&lt;/p&gt;  &lt;p&gt;Now you should have all that is needed to either remotely manage each machine from the other using &lt;strong&gt;winrm&lt;/strong&gt; (e.g. starting or stopping a service, or querying information using WMI) or run commands on the remote machine using &lt;strong&gt;winrs.&lt;/strong&gt; My particular usage is: &lt;strong&gt;winrs –r:%remotecomputername% cmd.exe&lt;/strong&gt;. This command will start a remote command prompt instance that I can then use to navigate directories on the server and run command line utilities like 7za.exe or netsh, ipconfig, etc.&lt;/p&gt;  &lt;p&gt;If you prefer PowerShell, there is one more step that needs to be taken from within an elevated PowerShell command prompt, on the machine that you want to remotely connect to execute: &lt;strong&gt;Enable-PSRemoting&lt;/strong&gt;. This will enable the PowerShell listener and PowerShell should then accept connections from remote PowerShell instances. To connect to the remote PowerShell session execute: &lt;strong&gt;Enter-PSSession %remotecomputername%&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;Again, I did not go into any detail on this because 1) I am not an authority and I didn’t look further than this, and 2) there is plenty of &lt;a href="http://www.windowsnetworking.com/articles_tutorials/How-Windows-Server-2008-WinRM-WinRS.html" target="_blank"&gt;information on the web&lt;/a&gt; and &lt;a href="http://technet.microsoft.com/en-us/library/dd163506.aspx" target="_blank"&gt;TechNet&lt;/a&gt; regarding &lt;a href="http://blogs.technet.com/jonjor/archive/2009/01/09/winrm-windows-remote-management-troubleshooting.aspx" target="_blank"&gt;this topic&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;I will probably post an update to this post if/when I ever decide and have enough time to write some code that will allow me to execute canned commands on a remote machine (mainly targeted at extracting archives on the remote machine right now).&lt;/p&gt;  &lt;p&gt;Enjoy reading up on WinRM/WinRS.&lt;/p&gt;&lt;img src="http://blippy.net/blog/aggbug/17.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Miguel Garrido</dc:creator>
            <guid>http://blippy.net/blog/archive/2010/01/19/know-about-winrm-remote-management-and-winrs-remote-shell.aspx</guid>
            <pubDate>Wed, 20 Jan 2010 01:05:14 GMT</pubDate>
            <wfw:comment>http://blippy.net/blog/comments/17.aspx</wfw:comment>
            <comments>http://blippy.net/blog/archive/2010/01/19/know-about-winrm-remote-management-and-winrs-remote-shell.aspx#feedback</comments>
            <wfw:commentRss>http://blippy.net/blog/comments/commentRss/17.aspx</wfw:commentRss>
            <trackback:ping>http://blippy.net/blog/services/trackbacks/17.aspx</trackback:ping>
        </item>
        <item>
            <title>Infrastructure Master FSMO role and Global Catalogs in your Active Directory domain</title>
            <link>http://blippy.net/blog/archive/2009/09/20/infrastructure-master-fsmo-role-and-global-catalogs-in-your-active.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Remember:&lt;/strong&gt; If only some of your Domain Controllers are Global Catalogs make sure that the domain controller that holds your Infrastructure FSMO role&lt;sup&gt;1&lt;/sup&gt; is &lt;strong&gt;not&lt;/strong&gt; a Global Catalog. The reason for this is that a global catalog that holds the infrastructure master role will stop looking for and removing phantom objects in your directory since it will have no phantom objects (we all know global catalogs hold partial information on every object in the directory) because it knows about every object in the directory if even a little.&lt;/p&gt;  &lt;p&gt;However, if all your domain controllers are global catalogs, then it doesn’t matter where the infrastructure master lies since all domain controllers will know about everything in the directory and will (unless there are bigger problems) have accurate information about your directory objects.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style="font-weight: bold; text-decoration: underline"&gt;Notes&lt;/span&gt;     &lt;br /&gt;1. &lt;a title="http://support.microsoft.com/kb/197132" href="http://support.microsoft.com/kb/197132" target="_blank"&gt;http://support.microsoft.com/kb/197132&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blippy.net/blog/aggbug/7.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Miguel Garrido</dc:creator>
            <guid>http://blippy.net/blog/archive/2009/09/20/infrastructure-master-fsmo-role-and-global-catalogs-in-your-active.aspx</guid>
            <pubDate>Mon, 21 Sep 2009 02:42:52 GMT</pubDate>
            <wfw:comment>http://blippy.net/blog/comments/7.aspx</wfw:comment>
            <comments>http://blippy.net/blog/archive/2009/09/20/infrastructure-master-fsmo-role-and-global-catalogs-in-your-active.aspx#feedback</comments>
            <wfw:commentRss>http://blippy.net/blog/comments/commentRss/7.aspx</wfw:commentRss>
            <trackback:ping>http://blippy.net/blog/services/trackbacks/7.aspx</trackback:ping>
        </item>
        <item>
            <title>Make use of additional UPN suffixes for your Active Directory domain</title>
            <link>http://blippy.net/blog/archive/2009/09/08/make-use-of-additional-upn-suffixes-for-your-active-directory.aspx</link>
            <description>&lt;p&gt;With the advent of Active Directory, the old school Security Accounts Manager (SAM) account names are almost a thing of the past, not that anyone got the memo. Most people still authenticate to their domain using their SAM account name, which is usually &lt;em&gt;DOMAIN\username&lt;/em&gt;; with DOMAIN being the NETBIOS name for the AD domain. &lt;/p&gt;  &lt;p&gt;While this is still (as previously mentioned) widely used and acceptable, in my opinion there is a more appealing method for having users log into their accounts on Active Directory networks, and that is using the User Principal Name (or UPN) suffix. A UPN will allow a user to specify their &lt;em&gt;username@upnsuffix&lt;/em&gt; to log into their account, and you can now see why this is appealing for some users. If your domain name does not live in the global DNS namespace, you probably have an Active Directory domain utilizing a &lt;em&gt;.local&lt;/em&gt; suffix, or a sub-domain of a domain that does live in the global DNS namespace like &lt;em&gt;corp.mydomain.com&lt;/em&gt;. By default, the UPN that is added (and thus shows up in the Account tab of an Active Directory user’s properties) is the fully qualified domain name (FQDN) of your Active Directory domain. This can be quite a task to type, if, for instance your FQDN is &lt;em&gt;corp.mydomain.com.&lt;/em&gt; In my opinion this is one of the main reasons that a down-level SAM account name is still used to log into AD domains most of the time today. But what if you could add the UPN suffix of your internet facing domain name, the domain name that your users are assigned for their e-mail addresses to the list of UPN suffixes that they can use to log into the network?&lt;/p&gt;  &lt;p&gt;As an administrator, you will know that each user will at least remember their e-mail address, so they can share it with co-workers or colleagues outside the company (and the GAL). Allowing a user to log on with their e-mail address gives your users less to remember and in the end can even save you a support call if they need to log in to OWA or Outlook on their laptop configured with Outlook Anywhere. The reason for this is that they are logging into their domain and will sooner remember to type in their e-mail address than remember the NETBIOS name of the domain they use to log into the corporate network.&lt;/p&gt;  &lt;p&gt;Now to answer your question before you ask it, you can add any UPN suffix you want inside your Active Directory forest, you will naturally want to choose something your users can relate to, but you don’t necessarily need to follow that advice either. Once you add a UPN suffix to your forest, you simply need to navigate to the &lt;strong&gt;Account&lt;/strong&gt; tab on a user’s properties in AD and change the drop down in the &lt;strong&gt;User logon name:&lt;/strong&gt; section to the UPN suffix that you’ve just added to the forest. You will recognize the UPN suffix because it looks like the end of an e-mail address. This can also be scripted using the DS commands (more on those in later posts), in case you want to change the UPN suffixes for accounts already present in Active Directory to allow log on with your newly created UPN suffix.&lt;/p&gt;  &lt;p&gt;So now, I’m sure you are asking yourself “Where is it that I add these UPN suffixes? Tell me already!”&lt;/p&gt;  &lt;p&gt;You can add a UPN suffix to your forest by opening the &lt;em&gt;Active Directory Domains and Trusts&lt;/em&gt; snap-in, right clicking the root of the snap-in which is &lt;strong&gt;Active Directory Domains and Trusts&lt;/strong&gt; and clicking on &lt;strong&gt;Properties&lt;/strong&gt;. From there you will see a &lt;strong&gt;UPN Suffixes&lt;/strong&gt; tab, and it is here where you can add the new UPN suffix to be used in your forest (and domains within the forest).&lt;/p&gt;  &lt;p&gt;If you only have one domain controller (shame on you, there should be at least two DCs in each AD domain), but if you do only have the one, you should be able to make the change instantaneously to your accounts. Otherwise, you will need to either force replication using the &lt;strong&gt;repadmin&lt;/strong&gt; utility, or wait long enough for the DCs to replicate between each other.&lt;/p&gt;  &lt;p&gt;Now your users will be able to log into the domain using &lt;em&gt;username@mycompany.com&lt;/em&gt; instead of &lt;em&gt;username@corp.mycompany.com&lt;/em&gt; or &lt;em&gt;username@mycompany.local&lt;/em&gt; or &lt;em&gt;MYCOMPANY\username&lt;/em&gt;, and you want this because a user will sooner remember his e-mail address than any of the latter example account names. &lt;strike&gt;However, just because they can log in with one does not mean they can’t log in with the others, as long as the UPN suffixes are there and/or the NETBIOS name is correct, the user should be able to log into the network using any of the previous account names.&lt;/strike&gt; &lt;strong&gt;Correction:&lt;/strong&gt; Once the UPN suffix for an account has been set, the user will only be able to authenticate using that UPN suffix, the domain NETBIOS name followed by a backslash and the username will also continue to work (since that will provide the server with the old SAM account name).&lt;/p&gt;&lt;img src="http://blippy.net/blog/aggbug/5.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Miguel Garrido</dc:creator>
            <guid>http://blippy.net/blog/archive/2009/09/08/make-use-of-additional-upn-suffixes-for-your-active-directory.aspx</guid>
            <pubDate>Tue, 08 Sep 2009 13:00:00 GMT</pubDate>
            <wfw:comment>http://blippy.net/blog/comments/5.aspx</wfw:comment>
            <comments>http://blippy.net/blog/archive/2009/09/08/make-use-of-additional-upn-suffixes-for-your-active-directory.aspx#feedback</comments>
            <wfw:commentRss>http://blippy.net/blog/comments/commentRss/5.aspx</wfw:commentRss>
            <trackback:ping>http://blippy.net/blog/services/trackbacks/5.aspx</trackback:ping>
        </item>
    </channel>
</rss>