Hi,
starting point is a simple powershell shell script testarray.ps1:
Continue reading Powershell: Passing an array to a script at command line
Howto do some things in Windows
Hi,
starting point is a simple powershell shell script testarray.ps1:
Continue reading Powershell: Passing an array to a script at command line
Hi,
Passwords for new users or for joining a domain could defined in plain text or encrypted at sysprep.xml or unattend.xml file. But they are not “really” encrypted.
Continue reading Windows: Script to recover lost Passwords from a unattend/sysprep.xml file
Hi,
let us assume you have installed Windows 10 1607 and you want to install the cumulative Update KB3189866 and the update fails:
c:\Temp > wusa %TEMP%\AMD64-all-windows10.0-kb3189866-x64.msu /quiet /norestart
Eventlog: EventID 3,
Windows update could not be installed because of error 2149842967 (Command line: “C:\Windows\system32\wusa.exe” “C:\Temp\AMD64-all-windows10.0-kb3189866-x64.msu”)
Continue reading Windows: Cumulative Update cannot be installed on Windows 10
Hi,
let us assume that you have write permissions (not full control) to a network share, you start robocopy without copying ACL and Attributes (/COPY:D, /DCOPY:D) and nevertheless robocopy exits with ACCESS DENIED. robocopy requests a lot of permissions:
Desired Access: Generic Read, Write Data/Add File, Write EA, Write Attributes, Delete, Write DAC
Disposition: OpenIf
Options: Directory, Synchronous IO Non-Alert, Open For Backup
Attributes: DA
ShareMode: None
AllocationSize: 0
Hi,
if you want to customize your environment powershell has ability to load or execute some scripts at startup.
There are 4 files where you can define functions, aliases … The AllHosts variables does not mean Computers. Allhosts is relating to Programs with has an Interface to Powershell, for example Powershell itself, Powershell ISE and so on. While currenthost means a specfic program. The currenthost variables differ from Powershell to Powershell ISE.
Continue reading Powershell: Profile locations