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

Problem with Import-CSV file to be read in Exchange Shell

Hi FolksI have a CSV file that contains a list of e-mail addresses in this format:"Name"Email1Email2 I want to use Get-Mailbox using this script:$Users =Import-Csv"D:\Scripts\Users.csv"foreach($user in...

View Article


multiple remote connection powershell ise

helloi have to run a long running script on multiple remote systems at the same time, i connect to the remote system using the same user and same credential and i have my remote computers saved on...

View Article


Nested Loops

Hi Sir,Pls, can you contol this stuff?The page counter is wrong, or many moor...Thanks for your helpMy best regardsArnoldNB: Please, wath are the parameters to create Page on screen or to print with...

View Article

[vbscript] switching browser windows

I got a VB script which is created to open a browser with predefined url and pass the user credentials. Everything is working fine for one window.Now I want to enhance this script to switch through...

View Article

Powershell Coding vs C# Coding

Hey all,I opened this thread to have a real discussion on coding. I myself use Powershell for everything, I love it and I think it can be used for nearly everything that C# can be used for (please...

View Article


Variables Work Until Put Inside If Statement

I'm trying to add some code to a batch file that I have first by writing a separate batch file. The batch file is to ask the user if they need to copy data from one location to another. It works when I...

View Article

Export-csv string[]

Hi!I have powershell snap-in that produce a lot of output and many of properties are string[] objects. I know that I can use command in this manner:Get-something | select P1,P2, {P3 -join ","} |...

View Article

Reset password of user to no password

Hi,How can i reset a users password with a null value ?Current i have is: Set-ADAccountPassword"USERNAME"-Reset-NewPassword(ConvertTo-SecureString-AsPlainText""-Force)Marcel

View Article


Edit column of CSV file in powershell

Hi im a newbie in powershell, appreciate if can anyone can advise me how to manipulate csv file in powershell,i have one .csv file that i want edit the column for Group and place a value "admin" if ID...

View Article


Getting top level permissions?

Hello.We have a bunch of folders on a fileserver that has folders shared directly to people instead of AD Groups. I want to get all top level permissions (IE the ones not inherited) and display the top...

View Article

Powershell Graphs

Hi,I'm trying to change the color of the values at the moment it does a yellow and blue and i would like red for disk used and green for disk free, but wondering what command i would need to input.here...

View Article

How to automate/script 'Connect using /Acces Point' on bluetooth device

Hello,I have been searching around and have not been able to identify a solution for the following:I have set up my laptop to use Bluetooth to my (Android) phone and I am successfully using the phone...

View Article

PowerShell Script to Clean User Profiles File Location

Hello,I have been searching around to accomplish what I am trying to do. It is pretty basic so I am hoping someone can point me in the right direction. I want to write a powershell script to clean out...

View Article


Join Domain Script +

Hi I got this script from another helpful forum postI was wondering if someone could add to it so if it comes back as CASE 0 then the machine restarts Cheers' JoinDomain.vbs ' VBScript program to join...

View Article

Setting User# variable according to TS Client name

I need to set the user# environment variable upon RDP login according to which client the users are connecting from. The server is Windows 2008 R2 and the clients are currently Win XP Pro. The username...

View Article


Query files with specific name

Hi guys, I`m looking for script (powershell or vbs) which will query files which name contains symbol "~" and which show me last date of modification (output to file). I need also additional script...

View Article

Random number of runs

Is there any way of running a set of commands a random number of times?  It would be nice to be able to set the range.

View Article


Use Powershell to replace text with image in Word document

I have a powershell script that uses a Word document as a template to create signatures that I am pushing out to my organization.The document is populated with text formatted the way I want the...

View Article

Script for change IP static address using Powershell

Hi...I have a question: I regularly connect me to two different network segments, I want to know how to create a script to map to the network adapter an IP static, in this way could run the...

View Article

Problem in creating the ADODB.Connection object Error Number...

Hi,We are migrating our applications from Windows 2003 to 2008 application server. We have vbs script in a job which is invoked from Tivoli Workload Scheduler (Windows)/JOBLNCH 8.5.1. We are getting...

View Article
Browsing all 15028 articles
Browse latest View live


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