Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

[PowerShell] Script to restart a service and its dependents (and their...

I am trying to write a PowerShell script that will restart the SNMP Service on a server.  The server in question is an HP server that has the various HP Insight agents installed, and some of these...

View Article


Move files to different directory which is older than 3 days with wildcard...

Hi Team,Could you please suggrest,how we can write a bat file to move the files which is older than 3 days. Also, the file name is not unique, so we need to follow the wildcard characters as well....

View Article


Wake up on LAN Powershell.

Hi Everyone Im trying to use Wake up on LAN command on Powershell and its not working.Syntax Send-WOL -mac 00:11:32:21:2D:11 -ip 192.168.8.255 -port 7The term 'send-WOl' is not recognized as the name...

View Article

Powershell in IIS

Hi,I try to make creation of a new site more efficient and more automatic.In the IIS GUI, there is a tab naming Directory Security in the properties of the site, virtual directory, folder or file. In...

View Article

Active Directory logons were processed

 Hi All, We have been asked to find out Active Directory logons processed in a month (to the nearest million probably).But is there any way we can find out?Thanks in Advance.Thanks HA

View Article


[PowerShell] Ping multiple servers simultaneously with PowerShell:...

I am hoping the author of the script "Ping multiple servers simultaneously with PowerShell: Test-ConnectionAsync" can help me.I found it at:...

View Article

Possible to open and monitor a control panel app with WMI using it's...

Hi All!I have need to open a control panel app (Win 7) via WMI and monitor it's process ID until it's closed as explained in one of your previous blog answers found...

View Article

Using PowerShell to automate "Make Available Offline" for folder.

Good Morning,I have been looking for a way to automate making a folder available offline for users'.  Ideally I would like to use PowerShell to do this.  I am sure there is a way but I can't seem to...

View Article


Script that when a device (usb barcode reader) is active, a window is brought...

Hi guys,we have an application on our win 7 PC called "Centaman", it's a program that is used in the recreation industry for gate control, memberships, etc.My issue is that when members scan there...

View Article


Powershell GUI - IP2Hostname

Hi all,I have created a win-form using powershell for getting hostname using an IP.# Load the Winforms assembly [reflection.assembly]::LoadWithPartialName( "System.Windows.Forms") # Create the form...

View Article

Image may be NSFW.
Clik here to view.

Problem with "Start /Wait" in batch file

Hello, Colleagues.I'm stacked with next question. Here is peace of codestart /wait /b ipconfig /all >> d:\scripts\1.txt start /wait /b ipconfig /all >> d:\scripts\1.txt start /wait /b...

View Article

Trying out Powershell!

Hey! Im trying out some scripting in PowerShell ISE for the first time. I'm really new to scripting so i'm just following a guide i found. Here's a link:...

View Article

Putting process output into a variable

This script runs a console command then puts its output into $stdout. It works as expected until the size of $stdout exceeds about 8 kBytes at which stage the process hangs as if it was waiting for a...

View Article


Image may be NSFW.
Clik here to view.

Session selection on Windows 8.1 In-Box Junos reconnection

Hello,I would like to automate user connection to a VPN using Powershell. I have found how to create the connection and trigger it on application launch.If my connection fails, on reconnection it is...

View Article

Need to delete text files based on the contents of a text file?

I am pretty new to digging this deep into my computer at work, but I would really like to automate this process to help relieve some of the strain on my coworker. Every morning a text file is generated...

View Article


Scripting module won't consistently autoload

I have a scripting module I wrote sometime ago that (I thought) used to work without pause. Today, it's code-signed for availability through a central repository and the UNC path was added to machines'...

View Article

Background not updating when changed by a batch script

Context : My school network reset the hard drive of the computers (Windows 7) every time someone log in or out (at least something similar that), so just setting a background image will make it go away...

View Article


Kill Process with Powershell

       Hello!I need some help with writing a script that will kill a process once it has reached a certain CPU consumption threshold. Please help.Thank You.

View Article

Combining multiple small .pptx files into one larger .pptx

So I'm a newbie when it comes to powershell and can't figure this out.  Here's the scenario, I have a file named "Multi organization.pptx" in a directory, within this directory I also have...

View Article

Powershell workflow with "ForEach - Parallel" issue (Assignment DOES NOT work)

Hello dear colleagues!I need your help to explore issue with powershell script with workflow.Here is script without workflow and "ForEach - Parallel", which works correctly.$erroractionpreference =...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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