Dec/092
Create a Share Remotely using the WMI Command-Line Tool
To manage Windows remotely through the command line interface, you can can use wmic (comes with windows).
Here’s the syntax to create a Windows File Share on a remote machine using a single line of code. With Windows NT some might remember rmtshare.exe which did the same thing, but crashes with more recent versions of Windows.
wmic /node:%REMOTESERVER% share call create “”, “%DESCRIPTION%”,”%MAX CONNECTIONS (LEAVE BLANK FOR UNLTD)%”, “%SHARENAME%”,”" , “%LOCAL PATH TO FOLDER%”, 0
Example:
wmic /node:SERVER1 share call create "", "User Homedrive for microtom","", "microtom$","" , "D:\Shares\Users\microtom", 0
You can find more information on WMIC here:
http://technet.microsoft.com/en-us/library/bb742610.aspx
1,123 views
Dec/090
Disable Legal Notice Text forced by Policy
If you have a Group Policy forcing client computers to display a legal notice text before logging on to Windows, you can set the following key to disable it:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{827D319E-6EAC-11D2-A4EA-00C04F79F83A}”
New REG_DWORD Value Name: NoMachinePolicy
Data: 1
Alternatively you can copy paste the following line in a command line:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{827D319E-6EAC-11D2-A4EA-00C04F79F83A}" /v NoMachinePolicy /t REG_DWORD /d 1 /f
1,511 views

(2 votes, average: 4.50 out of 5)