unable to run script for remote computer
I've tried about 100 ways to get my chunk of code to run against $computer. I usually just pass on the name like -property $computername or whatnot but it will not take. Any...
View Articleif not exist doesn't seem to be working
hi guys,i can't to get it to work, for /F "tokens=1*" %%i in (%File_dbname%) do ( for %%A in (%%j) do ( echo...
View ArticleReset domain passwaord cache in local machine
Dear concerns,I am using a windows 8 operating system, I am member of a domain. Also I am a local administrator of my laptop. I also have made image of my system drive.Yesterday my windows got stuck...
View ArticleRetrieve nested LDAP groups independent from the network env. (five different...
Hi all, I want to retrieve a list of nested LDAP groups per user from the Active Directory. I have been searching google for half a day now, but I'm still not sure what approach to use. I have the...
View ArticleGet the latest entry of an event id by get-eventlog
Hi,I want to extract the last log entry from event logfor example, i like to have the last (newest) event id 4672 in event log (using powershell not wevtutilso i should use get-eventlogbut the problem...
View ArticleRemoving Computer from SCCM with Status Filter Rule and Powershell
Hello all. I have searched high and low, and no solutions seem to help me. I have a status filter rule in SCCM 2012, which at the completion of an OSD ts, will kick off the following powershell...
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 ArticleMoving File Structure Skeleton and Copying ACL
I'm working on moving a set of folders from one server location to another. Everything seems to work fine except the last for-each isn't processing. I'm not receiving any error. Files copy okay but the...
View ArticleEnumerating remote Desktop shortcuts
Not new to vbscript, just don't code very often. Like once or twice a year.But, I'm trying to look for a specific shortcut on remote workstations and put the following script together, that reads a...
View ArticleExport-Clixml : The given path's format is not supported.
I am currently trying to export to xml and my script looks like this$xml = $reportBuilder.GetMyReport() $fileDestination = $filepath + "\" + $fileName + ".xml" $xml | Export-Clixml -Path...
View ArticleAdding an AD Group to a Network Share
Is there a way to add a specific AD group to a network share? I.e. add group x with modifiy permissions to a share? I have a large amount of folders to add the group to, and inheritance is disabled on...
View ArticleVBScript - using a list of file names (full path) as input in script
I am converting hundreds of thousands of .csv files to .xls. I am using the script below to do it quicker than opening each one and saving as. The format after its switch doesn't matter to me. My...
View ArticleHow do I extract part of a url?
In Powershell...if I have a url like this http://www.domain.com/folder1/thisfile.aspx. How do I go about stripping this down? I basically want to take out the http://, then change all the slashes ("/")...
View ArticleFindstr on 1 file and outputting variables to an outfile
Hi,I am quite new to the scripting world. I am wondering if you could help me out here.I have a file in a directory (InFile) and would need to compare them to a file similar to what Excel's vlookup is...
View ArticleMove folders based on a group of users names
I have a number of users who are members of a specific security group (Win7Users).Each member of this group had a folder on a file server and the name of each users folder is the same as thier...
View ArticleCompare CSV files and export to a new CSV file.
I am trying to compare two CSV files with Powershell, and export the differences that appear in the second CSV to a new CSV file. My attempt at a script is as follows:$today =...
View ArticleWevtutil on multiple remote computers
Hi Scripting Masters,I'm trying to put a PS script together that will read from a list of remote computers and enable logging on each; however, I'm running into an error while attempting to do so....
View ArticleFolder and file inheritance not working in PowerShell
So I am trying to create a few functions. The purpose of them is to reset permissions on a home folder, or similar, once the user has somehow removed permissions and ownership for everyone, but...
View ArticleWhat are lines that I can add to a batch file to make it run silently (so it...
I have a cpu miner that I would like to run on my computer without having to minimize it myself or see it in the taskbar. How can I run the batch file so it isn't visible unless you know where to look?
View ArticleFind User having Admin Privileges or not
Hi All, I have a task to work on batch script to find that particular user is having admin privileges or not.Can any one help how can i do this taskSamar
View Article