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

Image may be NSFW.
Clik here to view.

PowerShell Check Monitor and Report the Disk Space through SCRIPT using...

I try to run below script by PS1 have error.# First lets create a text file, where we will later save the freedisk space info $freeSpaceFileName = "FreeSpace.htm" $serverlist = "Serverlist.txt"...

View Article


Get-ADGroupMember -identity "GroupName" returns 39 members of the group and...

Hi I have tryed the command: Get-ADGroupMember -identity "GroupName" the group contain 95 members however when I run the command it returns 39 members and then fail...

View Article


Image may be NSFW.
Clik here to view.

Incorrect Invoke-WebRequest cookie path handling?

While trying to access a printer's web interface to automate something I noticed an oddity in the way Powershell handles cookies. What happens is that I send my login info to a server side script, and...

View Article

Strange behavior on Power shell Scripting

Hello,             I tried couple of Lync Synthetic transaction test (PS commandlet) from remote machine thro PS ScriptSyntax: Test-CsPresence -TargetFqdn atl-cs-001.litwareinc.com...

View Article

Encountered unmappable character error in powershell

Hi,I am using a following cmdlets to get all the machines information from AD of our domain. After running this script i get only few machine around (10 % of total machine in AD).Error - An error pops...

View Article


Filling in webpage info from text file

My text file has these fields:Name, OfficePhone, WebPageTester, 502-555-5555, www.contoso.comMy code looks like this:add-PSSnapin quest.activeroles.admanagement -erroraction silentlyContinue Import-Csv...

View Article

csv to xml conversion, element naming problem

Script:#Convert CSV FILES TO XML #Test if directory has and csv files, if yes then proceed if((test-path c:\temp\csv\*csv) -eq 1){ $csvpath= get-childitem c:\temp\csv\*.csv| foreach-object {...

View Article

Scan for file and report back if it exists

Hello,I am new to scripting and trying to find a way to search for a supposed virus file named wsr[any two numbers]zt32.dll on a large group of computers. I'm not sure how or where to use Get-ChildItem...

View Article


VB script hangs when running as a scheduled task in Win7

I have a script that hangs when running as a scheduled task. It runs fine if I simply double-click the script. Script is scheduled to run as the logged on user. I simply cannot find the issue. It will...

View Article


scripting about users with on line archive which is shared with others.

We need to generate a script that can retrieve all users in a specific MSAD OU who have:  - Full access permissions to another user on their mailbox, where the mailbox they have access to has an online...

View Article

WMI: can't run Notification Query to Event logs with non-admin user from...

I'm testing various Event logs queries to remote Windows Server 2008 R2 with wbemtest.exe. The user connected to the server is non-admin domain user but it has all the permissions according to...

View Article

Running .exe application out of powershell with parameters

Hi,I want to start a cmd.exe, launch another exe file and give some parameters / arguments for the exe out of powershell.I'm already as far as to launch the cmd.exe and the program out of...

View Article

Batch File - Replace old version

I have a Word document that I have created which contains several macros. This file is copied by other employees into different folders on the file server for them to use.  I often make admentments to...

View Article


Issue with Script

Hi Team,I am using this script for monitoring VPN account expiration date. Please check any errors at date function.Every this is working fine but while getting alerts i am getting END Date as below:...

View Article

How to remove all groups that a list of users belong in Quest PowerShell?

Hi everyoneI need some help with this, I found a script for powershell but I need a script for Quest Powershell, I know that I should change the parameters but I'm not sure and I don't want to mess it...

View Article


Powershell Error Catching for Rundll32 printui.dll,PrintUIEntry

Hello,I need to use rundll32 printui.dll,PrintUIentry command in a powershell script.I use TRY/CATCH with invoke-command cmdlet, but the problem is when an error occurs, it is not catched,...

View Article

How to tell that a windows service is completely started using PowerShell script

Hi gurus,I already have a running PowerShell script(s) to start and stop some services with a constant time delay between them in order to make sure not to start a service before the other (business...

View Article


use QUSER in powershell to return ONLY username

I need to be able to compare active sessions to profiles for a given server and I'm thinking quser will be the best bet, is there a way to return ONLY the username value in quser, or am I barking up...

View Article

PowerShell script form that launches a batch file

I have a script that creates a simple Windows form.  One of the things that the form does is launch a batch file.  However, I want the form to close right away and the script to end as soon as the...

View Article

Image may be NSFW.
Clik here to view.

Batch File is not working correctly

Hey Everyone,  I've got a batch file that I'm trying to get to work and seem to be running into difficulties on getting the whole batch file to work. I'm guessing that I have something missing or...

View Article
Browsing all 15028 articles
Browse latest View live


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