Logon to win 2008 through command line/run file remotely through command line
I need to run a .pl file on the win 2008 server. to do this i logon to the server through mstsc and then goto the folder and run the .pl script file. i want to avoid creating mstsc connection...
View ArticleHow can I count how many properties an object has?
Hi folks,I'd like to know how many properties an object has. Lets take an AD user object for example:$u = Get-ADUser -identity MyName -prop *$u is one object (not an array) with many attributes.How do...
View ArticleGet AD Groups and Group Members for specific groups
In AD I have groups for different companies. I have already exported the groups for the specific company to a text file using the command:Get-ADGroup -filter {samaccountname -like "*companyname*"}...
View ArticleWindows Bat File question - Variables and IP
I am trying to write a script that will do several things. I will provide a list.txt file that will have computer names. Batch file will issue a ping command against these computers to determine if...
View ArticleGet-WMIObject 0x800706F7 - The stub received bad data - Windows 2008 R2
I am writing a script a query out Citrix environment for the Lotus Notes processes that are running across the farm. I am passing it the credentials using a password stored in a text file and pulling...
View ArticleFormat-Table not displaying a columns data
I am using the powershell command below to read a csv file and match the computer name to the employee name where the last login date is 181 days old. For some reason the Employee_Name column in the...
View ArticleHow to use Powershell to recursively go through the home folder
Want to loop through the Home directory and find a folder named tempDocuments. The physical folder structure is like D:\Home\username1\TempDocuments, D:\Home\username2\TempDocuments,...
View ArticlePassing a value from a job to a progress bar in a form - help!
HiI currently have a form that displays a progress bar - the idea is to get this progress bar moving along as and when the percentage value passed to it from a job, however I feel a bit out of my depth...
View ArticleScript for pinning Offline Folders not working
I am trying to fix my script below to pin an offline folder. I don 't get any errors, but it does not pin the folder. Can anyone please point me in the right direction for why this isn't working?Dim...
View ArticleSearching for calendar items older than a specific date with search-mailbox...
I need to find the total size of all calendar items in a mailbox older than a specified date using PowerShell through the search-mailbox cmdlet's searchquery parameter. My problem is that I cannot...
View ArticleCMD/Batch Files
Hi everyone, I was wondering if anyone knows how to use CMD to uninstall MS Office? My company is selling Surfaces (hoping to be barebones) and we need to uninstall the MS Office 2013 preview. I am...
View ArticlePowerShell Script To Disabled Inactive Accounts With Specific Extension...
My task is to identify, document in csv file & disable user accounts. The criteria for selecting these accounts is:1. From a specifice OU2. LastLoginDate is greater than 90 days (not...
View Articlescript not able to query OS in domain
HelloI have a script which queries for number of specific operating systems in a trusted domain. Everytime I run this scripts it returns 0 instead of actual count of operating systems....
View ArticleCombine cmdlet output into csv file
Hi there! I am trying to combine output from cmdlets into one csv file. I want to take the following as an example:- gwmi Win32_OperatingSystem -ComputerName $Computers |Select-Object Version -...
View ArticleUnable to input the | pipeline character.
Hi, I'm trying to start using Powershell for the first time, however I have this problem where I am unable to input the | character. This is available to me in all other programs that I have used such...
View Articleexe not running with vbscript
one of the exe suppose(c:\Program Files\abcd\123.exe). it will run when we will double click on the exe. but not rnning with vbscript.error : the sysstem can not find the file specified code :...
View ArticleResources to learn to use Powershell to automate IE functions
For the past several days I have been searching resources for how to use Powershell to automate IE functions.We need to create powershell scripts to pass credentials into websites, to click on buttons...
View Article'stitching' scripts together?
Hi Scripting Guy!Sorry if I'm asking something stupid here but I'm very new to scripting and am uncertain of the 'cans and cannot'!I have three vbs scripts which I use that, when run in order (but...
View Articletrying to add users from xls file, but fails ( a tad urgent)
HiI'm new to this forum so please bear with me.I have setup a script ( note I didn't write the whole thing , kinda of a noob with regards to vbs)the script is as follows Option Explicit Dim...
View Articlewrite-host differences in powershell ise and command prompt
I have a script that takes input from a csv file; then using the employee's ID number it extracts the employee's manager's name from AD.Next I capture the manager's email address; which I believe is a...
View Article