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

Find a date in txt file

Hi guys!Simple question today:My txt file is this:Title dd/mm something dd/mm something else with powershell i need to know if one of those days is today.CanĀ you help me please?ThanksAĀ 

View Article


VB script for displaying certain items from a text file.

Hey, I'm creating a applications audit and need some help with displaying some data. I've just run a sql query to obtain a user list and what application they have access to. This list is in a .txt...

View Article


How to access structure in VBScript both Structure and it's only member has...

Hello,I VB Script how to access the structure's member if both the structure and the only member has the same name,Example,Structure name is User and it has only one member called "User" with the...

View Article

Folder checking, Function, Workflow, no output

Hello,I have a function that enumerates folder details for a given machine. I have created a workflow that calls the function. For some reason, I am not getting any output. Clearly it must be some...

View Article

Need to create a CSV file with headers from scratch.

I am trying to find an easy way in powershell to create a csv file. Ā we use csv templates to fill out new user creation etc.. and it would be nice if i could give a my teams a module that spits out the...

View Article


roaming profiles

looking for a script for deleting user profiles on windows server 2008

View Article

Set-Acl removing inherited permissions

Hi,I am trying to set permissions on a remote share. Ā However, using Set-Acl removes the inherited permissions from the share.i.e. F:\SHARE inherits permissions from F:\Using Set-Acl in any way,...

View Article

copy the correct file based on date??

$whatdate = (Get-Date).Date$today = $whatdate.ToShortDateString()Ā $file = (Get-ChildItem 'C:\pstfiles\*.pst').LastWriteTime.ToShortDateString()Ā foreach ($pst in $file) Ā Ā  Ā  {$day = $today -like $file}...

View Article


Powershell IE webpage Automation

Alright so here's my problem i've been trying to automate an IE session, i've got the logging into the website down just trying to input Into a Search field, change a dropdown selection and click the...

View Article


PowerShell script for AD name change

I need to change all users logon nameĀ in AD to their first name.last nameĀ Ā  Ā Server 2003

View Article

PowerShell script to empty recycle.bin on all drives

HiĀ I am looking for a PowerShell script to empty the $Recycle.bin on all the drives on remote machines.Ā 

View Article

Changing of Hostname using VBS

Hi,I would like to find out how to change a computer hostname using VBS script on window 7 with the following criteria.1) Prompt to change hostname2) machine will not reboot after that

View Article

Migrating a users printer from one print server to another while retaining...

Our existing file server is also the print server. We brought up another dedicated print server and exported from one and imported to the other. The goal is to bring down print services on the first...

View Article


VBS - on error or no action resume next

with the following vbs, it reads a input file that has a list of computer names. from that it lets me know the local admins for each pc.problem is that if a pc is hung yet pingable the script just sits...

View Article

Access HKCU using system account with Powershell

Hi Everyone,I'm very new to Powershell. I'm trying to write a script that exports all Onenotebook URL's users have to a text file. Change part of the path save it then import it back to the registry....

View Article


Powershell Script to Copy Files If Folder Exists

Hi All,I'm doing a data migration and need to achieve the following:Enumerate the contents of a source directory (example G:) with Get-ChildItem. Every child item will be a folder.For each of the...

View Article

tupac eugene

im Eugene munoz its rare that im on here I sell a lot of shit in paramount southern California im from Gundry street13 and carnales I would like to say that im gonna put one on trash some people don't...

View Article


Executing Batch Script as Standard User

HelloI'd like to ask regarding Batch Scripting. Let's say I have a standard user account on a computer and want to run a Batch file but with Administrator priviliges. Is there a way to insert a certain...

View Article

Image may be NSFW.
Clik here to view.

Issue creating Item Activated Events for a third party form Control in...

I was asked at work to look into converting some of our VB.Net Applications to PowerShell. We use theQIOS dev Suite for some of the controls to make it more visually appealing. I have been testing to...

View Article

use defined variable in another command

my code isĀ $usb = read-host -p "enter your flash disk leter like g:\backup"net share backup="$usb" /GRANT:Everyone,Full /remark:"backup"why is wrong please advise me i search a lot but i do not get my...

View Article
Browsing all 15028 articles
Browse latest View live


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