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

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 Article


Automatic 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 Article


Get 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 Article

Automatically 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 Article

How 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 Article


Hidden folders

Hello,Is there a script that can make a hidden folder for me?Thanks!

View Article

Import 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 Article

Calling 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 Article


Reading 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 Article


How 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 Article

Scheduled 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 Article

Powershell 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 Article

Passing 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 Article


How 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 Article

Powershell - 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 Article


Set 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 Article

Script 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 Article


List 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 Article

Trying 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 Article

RunOnce 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
Browsing all 15028 articles
Browse latest View live


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