4 Aralık 2015 Cuma
Remotely lock computer psexec
psexec.exe -accepteula \\[IPAddress_or_ComputerName] -i -s %windir%\system32\rundll32.exe user32.dll,LockWorkStation
Psexec LOGOFF Remote user / computer and administrators
Remotely Logoff User
Use it when you want to logoff a remote admin because you hate using the Windows Terminal Services Console or because sometimes it crashes.
C:\psexec.exe \\[IPaddress_or_ComputerName] -u DomainName\UserName cmd.exe
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Password: ********
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\WINDOWS\system32>query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
>console Administrator 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#4 User1 1 Active rdpwd
rdp-tcp#5 User2 2 Active rdpwd
C:\WINDOWS\system32>logoff 1
C:\WINDOWS\system32>logoff 2
Use it when you want to logoff a remote admin because you hate using the Windows Terminal Services Console or because sometimes it crashes.
C:\psexec.exe \\[IPaddress_or_ComputerName] -u DomainName\UserName cmd.exe
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Password: ********
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\WINDOWS\system32>query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
>console Administrator 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#4 User1 1 Active rdpwd
rdp-tcp#5 User2 2 Active rdpwd
C:\WINDOWS\system32>logoff 1
C:\WINDOWS\system32>logoff 2
12 Kasım 2015 Perşembe
Windows Server 2012 Enable Desktop Icons
Open Run
Copy and paste the line below into the Open: field, then click OK
"%Systemroot%\system32\rundll32.exe" shell32.dll,Control_RunDLL desk.cpl,,0
8 Haziran 2015 Pazartesi
ESX Host currently has no management network redundancy
When admitting a host to a HA cluster, or enabling HA on an existing cluster you may receive the "Host currently has no management network redundancy" warning message.
This happens due to requirements in a HA cluster where the management network (that is the service console or VMkernel port for management) is required to have two physical NICs.
If this requirement is not met the above error message is displayed. While I recommend you always, always ensure the management network has two pNICs and is redudant (including via seperate physical switches), it might not be possible in a demo/test environment.
In which case you may want to disable this warning message.
This can be done as follows...
1. Go to "Edit" the cluster settings
2. Click "VMware HA"
3. Click "Advanced Options"
4. Add "das.ignoreRedundantNetWarning" and set the value to "True", Click Ok
This happens due to requirements in a HA cluster where the management network (that is the service console or VMkernel port for management) is required to have two physical NICs.
If this requirement is not met the above error message is displayed. While I recommend you always, always ensure the management network has two pNICs and is redudant (including via seperate physical switches), it might not be possible in a demo/test environment.
In which case you may want to disable this warning message.
This can be done as follows...
1. Go to "Edit" the cluster settings
2. Click "VMware HA"
3. Click "Advanced Options"
4. Add "das.ignoreRedundantNetWarning" and set the value to "True", Click Ok
5. If there error still shows you need to select the host and click "Reconfigure for HA"
11 Mart 2015 Çarşamba
Disable users account move them to different OU PowerShell
Disable users account move them to different OU
Powershell Commands
Search-ADAccount –AccountDisabled –UsersOnly –SearchBase “DC=domain, DC=local” |Move-ADObject –TargetPath “OU=Disable Account, DC=domain,DC=local”
Powershell Commands
Search-ADAccount –AccountDisabled –UsersOnly –SearchBase “DC=domain, DC=local” |Move-ADObject –TargetPath “OU=Disable Account, DC=domain,DC=local”
10 Mart 2015 Salı
Old Disabled Users list last logon date With Powershell
Old Disabled Users list last logon date With Powershell
12 month old
Search-ADAccount -accountdisabled | where {$_.lastlogondate -lt (get-date).addmonths(-12)} | FT Name,samaccountname,LastLogonDate | out-file -filepath C:\export.txt –noclobber
12 month old
Search-ADAccount -accountdisabled | where {$_.lastlogondate -lt (get-date).addmonths(-12)} | FT Name,samaccountname,LastLogonDate | out-file -filepath C:\export.txt –noclobber
Kaydol:
Kayıtlar (Atom)