Remove Old Name Servers from reverse lookup zones in DNS- PowerShell
Hello Scripting Guys,I'm a long-time fan. Please let me know if I have included enough information for you to provide some guidance. Thank you!Here is what I am attempting to do:import a .csv file...
View ArticleConnect to PSSession
Hi everyone! I´m trying, if its possible to execute a bunch of commands to get information from Exchange 2010 . What i´m trying to do, is to create a powershell process, load exchange modules in that...
View ArticleCheck if a process is running,if not start the process
We are upgrading our EMET 3.0 to 4.1 Update 1 through SCCM 2012 SP1. There are two deployments, the first deploys the EMET MSI, the second runs a batch file that does the following:REM COPY EMET CONF...
View ArticleIO.FileSystemWatcher odd behaviour
Community, I hope you can help me with this one - I'm stumped!Take the following examples:Example 1- Invoke another external script with arguments:$folder = 'C:\In' $filter = '*.*' $FileSystemWatcher =...
View ArticleWMI query doesn't list all printers
Hi people.I have problem with script, to list of printers on remote machine. Here is a scrap of code:strComputer = "HOSTNAME"Set objWMIService = GetObject("winmgmts:\\" & strComputer &...
View ArticleDetermine if a Domain Computer is Connected to its Domain
From the workstation's perspective, what is the simplest way to determine if it's connected to its domain (i.e. it's not at home or in a coffee shop)? Can it tell by the%logonserver% variable? But...
View ArticlePowershell Script for DISM command on multiple servers
Good morning, Scripting Guys. I recently completed a project to install Windows 2008 R2 Service Pack 1 on 550 servers.Looking for a powershell script to remotely run the command: dism /online...
View ArticleSQL inventory Questions One server, multiple instances
Good afternoon scripting experts! I am a new DBA for SQL and one of my first projects is getting a hand on the inventory of all the servers/instances that we administer. I have a script that I run...
View ArticleScripting.encoder object documentation
Greetings, I need to encode a vbscript (actually in a HTA). Someone has srcenc but it only runs on win xp. I have found a script which does the encoding which uses the "Scripting.encoder" object...
View ArticleCan ConvertTo-Json handle trailling backslashes in the json data
Is there a problem with ConvertTo-Json and data that contains trailing backslashes. The following commands will throw any error with PowerShell 4: $json = @" { "thisWorks" : "c:\\foo\\bar",...
View ArticleDeskView - Problem with BIOS-Settings
Dear Support, my Name is Thiel Bernd.I am an technical Consultant. Whe want to use DeskView for one of our customers to standardize Fujitsu Workstations and Notebook’s.Whe Checked all Model’s and they...
View Articleinvoke-wuinstall remote host
how can i use the invoke-wuinstall command from the pswindowupdate modue to update servers remotely?
View Articleadd column with value of zero to excel
I have number of excel files which I need to process using a software, I need them to have same number of columns in order to process them. I need a script (VB or Power shell) to read the file and add...
View ArticleHow do I make my HTA using group policy to always be on top of the task bar
Ok, long story short, my project of the day is to come up with a HTA (My choice due to the click images etc), that will be pushed out via group policy .. and that when the clients' computer users...
View ArticleWindows 7 Home Edition problem with legacy VBS script
I've a VB script that's failing on the following line: with CreateObject("Word.Basic")with the error:Error : ActiveX component can't create object 'Word.Basic'Code : 800A01ADSource : Microsoft...
View ArticlePowershell to create link between Access db and an ODBC db
I have a table I want to create in an Access database, that is just a link to another database in ODBC. Currently, this happens via a VB script running inside a module/in Access. I need to replace that...
View ArticleHow to add user from domain A to a group in domain B
How would you acheive adding a user from domain A to a group that is in domain B via powershell without the Quest cmdlets? I've been trying to figure this out for about a week now. Please let me know...
View ArticleGenerate WWPN from Multiple Servers
Hello, I am trying to make this script that will generate the WWPNs from multiple servers, but for some reason it is only generating the WWPN of the machine but not the hostnames, how do I make it...
View Articleobtain specific event data
Can someone advice how to obtain a specific eventdata from the events? I saw another thread about getting eventdata, but that is from a specific event. I would to see the eventdata for all the...
View ArticlePowershell to create link between Access database and an ODBC Pervasive database
So, I have the following script (thanks to JRV!):function Link-ExternalODBCTable{ Param( $accessFile, $tableName, $tableName2 ) if(-not...
View Article