New-JobTrigger -AtStartup really doesnt work..?? :-(
Hi, i tried this code, it works (at the first look) really good, the jobs are created and the job "WSUSUPdate" with trigger -at runs fantastic... but the job with the trigger, AtStartup works never.......
View ArticleConvert Powershell Output to excel
Hello,I am trying to convert this output to excel:$Filter = @{Expression={$_.Name};Label="DiskName"}, ` @{Expression={[int]$($_.Freespace/1GB)};Label="FreeSpaceGB"} Get-WmiObject Win32_Volume...
View ArticleEnable-ComputerRestore error msg "Include System Drive in the list of drives"
Hi,I'm running Enable-ComputerRestore -drive "C:\" in WinPE8 but get this message "Include System Drive in the list of drives" in red ...The C: drive is the Windows 8 system drive ...If I run...
View ArticleCimException with Network Controller
I am trying to install Network controller on a 2016tp5 VM following this procedure: https://technet.microsoft.com/en-us/library/mt282165.aspxI get an error while running the command...
View ArticleNeed help in tweaking the Powershell AD query to find inactive computers
Hello All,I am a beginner in powershell. i managed to construct a query to find out the inactive computers with last logon name. but the problem is that query time out everytime. if i limit the scope...
View ArticlePowershell script Add-computer "" -OUPath "" failing when executed.
Good afternoon,I have the following script that is ran manually with elevated rights to join a windows 7 workstation to a domain and to the right OU.Add-Computer -domainname "org domain" -OUPath...
View ArticleUpdating an ADUser's Manager with a Contact Card
Hi AllI am trying to update AD User Accounts with Managers created on contact cards. I am having a problem where I cant seem to be able to use contact type instead of User. In AD&C it allows me to...
View ArticleLooking for a script to identify what domain controller connected to behind a...
So, I'm a bit of a newbie and am looking for some direction for troubleshooting what domain controller I'm connecting to after a load balancer. My environment has the domain controllers behind a load...
View ArticleDebug Prompt not coming when Powershel breakpoint hit
Hi,I have created a breakpoint as followsSet-PSBreakpoint -Command get-process -Script C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1or Set-PSBreakpoint -Script...
View ArticleScript to Monitor free space in UNC Path / Network drive
Hi All,Good Day,I was trying to achieve the below:To monitor a network share and its free space so i managed to write a script as below where it maps the drive as a letter queries the free space added...
View ArticleSplit a file between two line
I have a file with a random amount of entries of report names. The last line and the line prior to the reports are always the same.IE:$FTPListStart =...
View Articlehow to remove instance name and total
Hi,how can i remove the instance name and total from this query?Get-counter -counter "\physicaldisk(*)\Disk Reads/sec" | select -expand countersamples | format-table -wrap -autosizeTHX
View ArticleHow to Execute Batch and Jar File Remotely
Hello,I need to execute a batch file (.bat) remotely. The bat file is used to start a jar file. I've tried several scripts:invoke-command -scriptblock {start-process xxx.bat} -computername...
View ArticleWindows PowerShell Command to New User Creation
Hi Team,I hope, all of you are having Good Time. I'm looking for a PowerShell Command for new User Account Creation. I want the PowerShell Command to do the followings,1. Add a suffix with user's Last...
View ArticleFind and replace a string in the registry
Hello,I'm pretty new in PowerShell. I'm looking for a script to allow me find and replace a string in the registry base. My goal is to find all the refereces to a shared folder (Forx example...
View Articledns how can we find who & when created a DNS record ?
dns how can we find who & when created a DNS record ? I know at AD level some audit need to turn on , say its tuned on, so how can we find this info ?thanks
View ArticleModule returns different result from the script version [Test-Path]
introductionI've written my first PowerShell script aimed for retrieving detailed information from a Windows Setup ISO file. Once the basic features achieved, I've started to convert theps1 script into...
View ArticleInstall software remotely via Powershell
I'm trying to remotely install an application (Office 2010 Pro to be exact) and it works when I run it locally, but fails when i try it remotely. I have this syntax which I see commonly online as the...
View ArticleControls disabled when setting Visible property outside of runspace with...
First, I open a GUI in it's own runspace using a synced hashtable. Initially, I set the Visible property of a radio button group to false because I don't want it to display until a certain option has...
View ArticlePowershell Organise files - Match file Name - Make folder and Organise
Hello friends, I am trying to organise all the files in a big folder, now it has a lot of files that need to be organized. I got the idea from here for a powershell script to help my poor hands....
View Article