PowerShell, Office 2007:...
Hi All,I have problem to convert word document in to html (Office 2007)Interop Assembly appear to work but powershell returns:Unable to find type [Microsoft.Office.Interop.Word.WdSaveFormat]: I'using...
View ArticleAutomatic file archiving
Hello All, I'm looking for a method/software that will allow me to auto archive files from my file server to to my "archive server". Currently I'm doing it the manual way of copying and moving from...
View ArticleGet lastlogontimestamp in a readable format with a batch file
I have a batch file I run on active directory. It tells me the last time all computers were logged on but I have to do some conversions after it runs. I found a way to make the batch file better but...
View ArticleAutomatically Restarting processID instance that use 50% of total memory...
I need assistance with a PS script that automatically kills a processID instance when it uses 50% of total memory. There are several instances of the process running in the server. I just want to...
View ArticleHow to write a program to add 2 numbers in VB (system should ask for the...
How to write a program to add 2 numbers in VB (system should ask for the values of number).
View ArticleImport CSV, Edit Data, Export CSV
Hello,I am a powershell novice and have been given a task to complete. I need to scan through AD, find all of the servers that are supposed to be active, "ping" them and, if active, get their IP...
View ArticleCalling webservice from PowerShell
Hello!I am trying to call a webservice from PowerShell and have a parameter-problem.When using the webservice from WFC Test Client I can see that the method I want to use has two parameters. The first...
View ArticleReading the registry from a .bat file
I've searched a bit on web before asking and I apologies a head of time but my knowledge of .bat files is a little lacking. Currently I have a working .bat file I created, but was looking to adding...
View ArticleHow to correlate SMART status with drive letter?
I'm trying to manage direct-attached disks with these Cmdlets:Get-WmiObject -Namespace root\wmi –class MSStorageDriver_FailurePredictStatus | Select InstanceName, PredictFailure Get-WmiObject...
View ArticleScheduled Task Status check
Hi,Im trying to get Nagios to check Windows Scheduled Tasks by Status.Basically i want to know when tasks are Disabled or Could Not Start so i need to monitor the Status field.I found a script on the...
View ArticlePowershell Test-Path of HKEY_USERS
Hello Folks,I'm attempting to write a script that will update a non logged in users NTUSER.dat registry setting.I load the hive with: REG load "hku\temp" c:\users\${username}\NTUSER.dat. That occurs...
View ArticlePassing variables to Start-Process (to run another script)
Hi scripters!I'm writing a Powershell script in which another powershell script needs to be started. I am using the Start-Process cmdlet to start the other script. The other script needs a command line...
View ArticleHow to remove all "connected accounts" for all users in domain via powershell...
I am new to Outlook 365 and to using powershell to manage the domain. What I'm looking for is a powershell script to remove all the "connected accounts" for all the users in my domain. Is there anyone...
View ArticlePowershell - Invoke-Command Network Connection has been interrupted
Hi, I have been having this problem intermittently, i use invoke-command -AsJob -computername myserver1 -scriptblock {get-process}WARNING: The network connection to myserver1 has been interrupted....
View ArticleSet Feature delegation in IIS 7.5
I need to change an IIS "Feature Delegation" setting through powershell. can't seem to find the right way to code this.i need to set the delegation state to Read/Write for authentication-Window and...
View ArticleScript for Inactive computer from last logon time stamp
Hi Freinds,I have a list of servers which include some specific servers (around 900 servers). now i need to check those servers which are not logged on from last 30 or 60 days. I find the scripts which...
View ArticleList all AD users with memberof
Hi I have got this script and it works fine, but I cant add the memberof groups for each user. On Error Resume Next Const ADS_SCOPE_SUBTREE = 2 Const ADS_UF_ACCOUNTDISABLE = &H0002 Const...
View ArticleTrying to remotely uninstall an app
Hello,I'm fairly new to PS and I've been working on a script to uninstall an application from a remote machine.this is what i have so far:$computers = "COMPA"foreach ($computers in $computers){...
View ArticleRunOnce vbscript
Hey,I am in need of an vbscript that can help me execute a .exe once.. i've tryed to do this:Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite...
View Article