If you are trying to determine why Your new GPO policy is not being applied as expected, one of first things you should do is examine the Resultant Set of Policy (RSoP) for the user and computer experiencing problems with policy settings on Your Windows Server 2008.
Using the Gpresult command-line utility, you can view RSoP.
Gpresult command provides details on the following:
- special settings applied for folder redirection, software installation, disk quota, IPSec, and scripts;
- last time Group Policy was applied;
- domain controller from which policy was applied and the security group memberships for the computer and user accounts;
- complete list of GPO that were applied and complete list of GPO that were not applied because of filters.
Gpresult has the following syntax:
gpresult /s [ComputerName] /user [Domain\UserName]
[ComputerName] – is the name of the computer that you want to log policy results for
[Domain\UserName] – domain user that you want to log policy results for
Lets for example view the RSoP for server named “TestServer1” and the user “testuser1” in the “test.lan” domain. In this case open command line on Your Windows server and type:
gpresult /s TestServer1 /user test.lan\testuser1
Also You can view more detailed output by using one of the two verbose options.
/v parameter turns on verbose output and results are displayed only for policy settings in effect
/z parameter turns on verbose output with settings for policy settings in effect and all other GPOs that have the policy set
In additionYou can create an HTML report using the /h parameter or an XML report using the /x parameter.
Have fun !
Windows server 2003 has very nice tool “forfiles.exe” which provides you with quick and nice file search function.
If you want to use it with your Windows XP machine download it from here .
This tool can be played with mass of functions and in this article i`ll show how to use it with some of them.
For example i want to search through all *.log files in C:\Windows folder and subfolders.
If i find any *.log file there that size is greater than 1MB i want to export path, size and modify time information of that file into C:\Data\LogFileInfo.txt .
In that case open command line and type:
forfiles.exe /p C:\Windows /s /m *.log /c “cmd /c IF @fsize GTR 1000000 (echo @path @fsize @fdate)” >C:\Data\LogFileInfo.txt
Syntax:
/p – what path to search
/m – what file type to search
/s – include subfolders
GTR – greater than
Few weeks ago i got tough situation when share i made offline was moved to another server by local administrator and all users were still trying to synchronize offline files with old server.
How to act in this situation You would ask?
First of all you must download Windows server 2003 Resource Kit Tools from this site .
In this case we will need csccmd.exe tool which will work on Windows XP systems too.
Install tools pack you downloaded, open command line and navigate to Resourse Kit Tools folder.
When you are in place type:
csccmd.exe /moveshare:\\oldserver\oldshare \\newserver\newshare

Press “Enter” and you are done !
Posted by Mark | Posted in Command line, Windows XP | Posted on 24-07-2009
1
This post will show you how to add functionality to right click on any directory and select “Command Prompt Here” from the menu to open command line in that location.
First of all open registry editor Start > Run, type regedit and press OK.
Browse to:
HKEY_CLASSES_ROOT\Directory\shell

Right click “shell” and choose the New > Key option

Name the new key “CommandPrompt” without the quotes and then double-click on the default value in the right .
Change value data to “Command Prompt Here”

Right click on the key you created and select New > Key

Name the new key “Command” and then double-click the default value on the right.
Set Value data to:
cmd.exe /k cd %1

Press “OK” .
Now when you right-click any folder in your Windows machine you will see “Command Prompt Here” option to open command line in that location.

Cheers!
Posted by aidas | Posted in Windows XP | Posted on 22-07-2009
0
Hi there!
Check this nice hidden Brian Eno Ambient mix in your Windows XP machine !
To access it Press Start > Run and type:
C:\WINDOWS\system32\oobe\images\title.wma

Press “OK” and Enjoy !
Do you know how to script basic FTP server connect/copy operations?
I`ll show you that.
Lets assume you want every Friday at 06:00pm to connect to specific FTP server and download all files from it to directory named D:\Scanfiles.
On your Windows server 2003 or Windows XP start notepad and type:
@echo off
echo user username> ftpbat.dat
echo password>> ftpbat.dat
echo prompt>> ftpbat.dat
echo mget *.*>> ftpbat.dat
echo quit>> ftpbat.dat
ftp -n -s:ftpbat.dat FTPserverIP
del ftpbat.dat

Save file as ftp.bat and place it in D:\Scanfiles folder.
Change this data:
username – your ftp username
password – your ftp password
FTPserverIP – ip address of ftp server to connect
After that create new scheduled task to run ftp.bat file every Friday at 06:00pm .
Cheers!
Posted by Erica | Posted in Windows 2003, Windows XP | Posted on 20-07-2009
0
Have you ever wanted to reset Outlook 2003 folder language to default?
How to do it?
It is pretty simple.
Login to your Windows server 2003 or Windows XP machine where Outlook 2003 is installed.
Click Start>Run and type:
outlook.exe /resetfoldernames

Press “OK” and you are done !
Posted by Erica | Posted in Tools, Windows 2003, Windows XP | Posted on 09-07-2009
0
I hate this one really…
Then path to file exceeds 255 symbols it becames corrupted and you can have very hard time to delete or rename it.
Ok, how to deal with this.
At this case you have three choices:
1. Dont use too long paths! Use short names for you folders and avoid naming folders this way:
“Very important documents for financial department that were copied from local storage at 20080607″
2. If you did already, you can try to follow path to file and try to rename some very long folder names to shorter one.
3. You can use third party software that will run on your Windows server 2003, Windows XP and even older machines to deal with these files.
One of really great and free utils is “DelinvFile”.
You can download it from here .
I`ll show you how to create very nice .bat script which will defragment your disks and generate report in log file.
This script was tested on Windows server 2003 or Windows XP machines.
Ok then, lets say you want to defragment C: and D: disks every Monday and Friday starting job at 10:00pm.
Also you want to store log file on C:\Tools folder.
OK, lets open notepad and copy paste this text:
@Ecxo off
Set logfile=C:\Tools\defrag.log
Echo Start %date%,%time% >>%logfile%
Echo *************************** >>%logfile%
Echo Defragmenting C: disk >>%logfile%
Echo. >>%logfile%
defrag.exe c: -f >>%logfile%
Echo *************************** >>%logfile%
Echo Defragmenting D: disk >>%logfile%
Echo. >>%logfile%
defrag.exe d: -f >>%logfile%
Echo *************************** >>%logfile%
Echo Finished %date%,%time% >>%logfile%
Echo *************************** >>%logfile%
Save this file as Defrag.bat and place it to C:\Tools folder
Now open command line and shedule defragmenting by typing:
at 10:00pm /every:M,F C:\Tools\Defrag.bat

Press “Enter”
And we are finished !
Here is quick tip how to create dummy file with size of your choice using Windows server 2003 or Windows XP machine.
To do that i will use utility named “fsutil”. Basic syntax for creating a file is:
fsutil file createnew <name of file> <size in bytes>
For example following command:
fsutil file createnew C:\dummyfile.txt 1000000

will create 1Mb file named dummyfile.txt in C:\
This post will show you how to use net share command to share folder.
Lets say we want to share “D:\Test” folder with share name “TestDocs”.
Open command line on your Windows server 2003 or Windows XP computer and type:
net share TestDocs=D:\Test

Press “Enter” button and you are done !
This post will show you how to spy on other users using Windows computer.
For this purpose we tested software named “Detective Dominator”.
“Detective Dominator” is a stealth keylogger that will provides you with necessary confidence in monitoring PC and internet activity. Whether you want to monitor your computer while you are away, retrieve lost information, or monitor your children’s activity it is really nice keylogger software for the job.

If you have your own business this tool can help you for the perfect employee monitoring software. As per developer this software for pc usage monitoring allows you to find out virtually everything that happens on the computer…
If you are interested read more about “Detective Dominator” Here .