PowerShell Script for Active Directory Domain Services Deployment

Here is the Windows PowerShell script for Active Directory Domain Services Deployment on Windows Server 2012 R2. [code language=”powershell”] # # Windows PowerShell script for AD DS Deployment # Import-Module ADDSDeployment Install-ADDSForest ` -CreateDnsDelegation:$false ` -DatabasePath "C:\Windows\NTDS" ` -DomainMode "Win2012R2" ` -DomainName "xdpoc.lan" ` -DomainNetbiosName "XDPOC" ` -ForestMode "Win2012R2" ` -InstallDns:$true ` -LogPath "C:\Windows\NTDS" ` -NoRebootOnCompletion:$false ` -SysvolPath "C:\Windows\SYSVOL" ` -Force:$true [/code]

Read more

PowerShell script to detect if you are running in Citrix XenApp Environment

PowerShell script to detect if you are running in Citrix XenApp Environment It is very usual that you find enterprises supporting Physical and Virtual environments. When you have to setup an automation or an application customization across such an enterprise, you often require to determine the environment where the user is logged in and apply appropriate settings. Say you want to set a user environment variable ONLY when an application is launched on the local physical machines but not when launched in Citrix environment.  If you have to achieve this with a script that runs automatically for all users, you […]

Read more

Visual Basic Script | Software Inventory | List and Generate a .CSV report file of all installed software on Windows Local System

Its a usual task for any of Windows Systems administrator to generate an inventory of Software installed on a Windows System.  In most of the enterprises there would be various enterprise Inventory software employed for this purpose.  But still if you wan to generate a quick ( and up-to-date) list from any Windows System, you can use below script that I modified to save the output/report to a .CSV file in the current working directory. VBScript to List All Installed Software | VBScript for Windows Software Inventory: [code language=”vb”] Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile("Software-Inventory.csv", True) On Error […]

Read more