Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Jobtrigger at startup

Hello,Since I migrated from Win 8.1 to 10, job scheduling seems to have changed.I want to launch a script to read out the data from a 'smart' electricity meter whenever I turn on my pc.I registered the...

View Article


_PS HKLM:\> dir variable Gives me an error

When I typePS HKLM:\> dir variable I get the following response in Red lettersdir : Cannot find path 'HKEY_LOCAL_MACHINE\variable' because it does not exist.It seems to me that the problem is that...

View Article


Image may be NSFW.
Clik here to view.

AppActivate x Internet Explore

Hi,I have a powershell script that bring chrome browser to front (Active Window) working very wellAdd-Type-AssemblyName Microsoft.VisualBasic[Microsoft.VisualBasic.Interaction]::AppActivate("chrome")...

View Article

rename files while is copied

HiAs I can rename files with the LastAccessTime while is copied?My code:copy-item -path $iFile.FullName -destination $target -recurse -force thanks

View Article

Single Import Request to Import Same Data into multiple Mailboxes

Hi Guys,I have a requirement from my Boss.We have some and also SAME data like a contact that has to imported to ALL the mailboxes.I know it can be done via New-MailboxImportRequest but the point I...

View Article


PowerShell Document Test Script

Hi Everyone.I am in desperate need of some Powershell Test Script.I am trying to automate document composition testing, as in direct powershell to a directory containing the pdf document and data...

View Article

Command to Wait until process(appref-ms ps1) is fully loaded?

Hi, I am trying to automate one of my daily task, facing lots of issues. need your help or better approach.Issues: appref-ms ps1 takes 2 to 3 minutes to load dlls , latest updates. I don't know how to...

View Article

Check if iexplore page is completely loaded

Hi,I have a script that send keys to iexplore.My problem is... sometimes the page is not completely loaded, and the send keys command becomes adrift.I tried with Start-Sleep but isn't work because my...

View Article


Image may be NSFW.
Clik here to view.

Back to the start of script

Hi,How can i set the script below to back to the start of script again, if choosen button is "Yes"?$OUTPUT= if ($OUTPUT-eq"YES" ){?????????????}else{Exit-PSSession}Thanks

View Article


PowerShell running many SQL Server scripts

I am writing a script to iterate through numerous SQL scripts. These have been generated through a Redgate tool, and will basically migrate a database. There are several hundred of these.I have written...

View Article

PowerShell exit code from function.

Hi all,I would like to make and get the exit code and "$?" status from function in PowerShell manually. Can I do it? For example:function A { Param( $Arg01 ) If (-Not $( $Arg01) )) { exit 101 }...

View Article

Delete all user profiles on WIN-7 remotely

Hi..I am looking for a script or a utility which can remove all user profiles on Windows-7 machine remotely. regardless of, they are being used or not. All user profiles should be removed.Thanks.

View Article

space --> underscore

HiWhere this error?. I want to rename files and folders that have a space with underscore, but only makes me the files. Get-ChildItem $path -Recurse |`    Where-Object {$_.Name -match ' '} |...

View Article


Image may be NSFW.
Clik here to view.

PowerShell Guru Winners for November. Plus, your last chance for the 2015...

You only have a few days to get your entry in for the FINAL competition of 2015!Enter here ---> TechNet Guru December 2015Below are the results for the TechNet Guru Awards, November 2015 !!!!The...

View Article

Changing the Remote Desktop Profile Path with Powershell

I am making a PowerShell script for automating user creation in the company I work in, but I have a problem. How can I set the "Remote Desktop Services Profile Path" through Powershell? I can set all...

View Article


Exclude a Update ID from my update script

Hello so i have learned that there are certain windows updates i need to not apply since i have .net 4.6 on my windows 2012 server. I have the below script already in place to run biweekly. #Define...

View Article

Replacing all addresses in proxyaddresses with array

we have local AD that synchronizes to O365we are adding a new email address with new domain to all users in two phases.1) add new email address and let settle.2) make new email address the primary...

View Article


powershell memory usage

I'm having some issues with what I thought was a fairly innocuous powershell script. Basically, it imports a CSV file from our HRIS system to a variable, then uses a foreach loop to process it line by...

View Article

Documentation is missing for New-PSSessionConfigurationFile cmdlet in PS5

Documentation is missing for majority of cmdlet relevant to WinRM PSsession configuration cmdlets. There is a bunch of new parameters added like (TranscriptDirectory, RunAsvirtualAccount etc). Both...

View Article

Image may be NSFW.
Clik here to view.

Who will be crowned the last PowerShell Guru of 2015!!

Here it is folks!THE FINAL CHALLENGE OF 2015!!Step up all known Gurus currently active!Let us see the year out in style, with some final thoughts and knowledge from everyone we love and follow in the...

View Article
Browsing all 21975 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>