Gurpreet Sachdev
September 10, 2016
Articles, Tutorials
CommandLine, PowerShell, Printing
Following command will enable the option ‘List in directory’ under printer properties to published the shared printers in active directory. For local computer:Get-Printer | Set-Printer -Published $true For remote computer: Get-Printer -ComputerName RemoteServer | Set-Printer -Published $true
Gurpreet Sachdev
January 8, 2016
Articles, Tutorials
CommandLine, How To, PowerShell
PoweShell is not installed by default on Windows Core edition. We need to enable the feature. One of the prerequisite for PowerShell is .Net Framework. We need to install .Net framework first: Command to install .Net Framework 4.0 Dism…
Read more
Gurpreet Sachdev
December 14, 2015
Articles, Tutorials
CommandLine, PowerShell
If you wish to convert, Unix or Epoch time to readable format, go the this article: PowerShell – Convert Unix or Epoch time to readable format Command: Get-Date -Date “12/31/2015 23:59:59” -UFormat %s
Gurpreet Sachdev
December 14, 2015
Articles, Tutorials
CommandLine, PowerShell
Powershell has Get-Date cmdlet that has a parameter to format Unix (Epoch) time to readable format. If you want to convert normal time to Unix (Epoch) time, click here Command: Get-Date EpochTime -uFormat %x Example: Get-Date 130941281616085699 -UFormat %x Please note,…
Read more
Gurpreet Sachdev
December 4, 2015
Articles, Tutorials
CommandLine, PowerShell, Printing, Script, Windows
This article assumes that the print queues are already setup. The cmdlet is included in Windows 2012 R2 OS by default but can be used to enable/disable printer share on previous versions of Windows remotely. To share a printer Set-Printer…
Read more
Gurpreet Sachdev
October 26, 2015
Articles, Troubleshoot
So, we recently migrated a file server from old server to a new one running on Windows server 2012 R2. We updated the old server’s DNS name to point to the new server. That was when all hell broke loose. Issue:…
Read more
Gurpreet Sachdev
September 9, 2014
Articles, Tutorials
Download the DataONTAP.zip from NetApp site Extract the content folder DataONTAP. Copy the DataONTAP folder to the following location: C:\Windows\System32\WindowsPowerShell\v1.0\Modules Launch the PowerShell window and type the following command. Confirm ‘Yes’ when prompted. Set-ExecutionPolicy unrestricted Type another command to import…
Read more
Gurpreet Sachdev
August 23, 2014
Articles, Tutorials
PowerShell GET-ACL $Path | Select Path, Owner -expand access where “$Path” could be a variable of the folder path or you can replace with the value like “c:\temp” If you notice, the Path attribute has some unwanted value ‘Microsoft.PowerShell.Core\Filesystem’::’ …
Read more
Gurpreet Sachdev
April 25, 2014
Articles, Tutorials
You can check Active Directory schema version via different methods defined in the following article: How to check Active Directory Schema Versions Below is the list of different AD schema versions Windows 200 Server 13 Windows Server 2003 30 Windows…
Read more
Gurpreet Sachdev
April 10, 2014
Articles, Tutorials
System’s serial number information is stored in WMI. The WMI class is Win32_Bios and there are different ways to query it. We are going to discuss two methods: Command Line Open the command prompt and type the following command: wmic…
Read more