|
Controlling Print Jobs through GPO / Active Directory / Server
Hi All
Is there anyway to control printing through GPO / Active Directory / Server?
One of the main stumbling blocks in schools is the amount of pages wasted or
bottlenecked by over enthusiastic pupils (and teachers!).
Rgds
...
|
3 |
30.05.2007 13:45:02 |
|
Error Message when running script
I am trying to run the following script to force a password change at next
logon. I am running this on a Domain Member workstation while logged on as a
Domain Admin:
Set objUser = GetObject _
("LDAP://CN=myerken,OU=management,DC=Fabrikam,DC=com")
objUser.Put "pwdLastSet", 0
objUser.SetInfo
The only line I changed is to account for my user and OU hierarchy:
("LDAP://CN=use...
|
6 |
30.05.2007 00:18:03 |
|
how to remote login
how to use rdp to connect to remote computer in vbs script.
as of now the setup is like that
STEP 1 :: from my computer run "mstsc" to other computer
STEP 2 :: The remote computer, throws a security notice, i click "OK" to get
thru
STEP 3 :: I type the UID and PWD and click connect
i am logged into the server.
now i want to do this in a vbs...
|
5 |
29.05.2007 23:02:46 |
|
netsh checking flat file for valid IP
I am wondering if this is possible to do via a logon script.
1.) Check a flat/excel file for the current computer name
2.) Verify that the IP in the flat file matches the IP assigned to the
current computer
3.) If it does not, then set it to the IP associated to the current
computer, listed in the flat file
4.) If the IP has been changed by the script, log the event to a text
file/databas...
|
2 |
29.05.2007 22:58:21 |
|
Interactive Rename and Domain Join Script Needed
Background:
I have Vista installed as a Guest onto a Virtual PC 2007 VM. I want to
customize it, sysprep it and then distribute it to our QA team. In XP and 2K
Pro i was able to do this in such a way that the VM would launch mini setup
and prompt users for a Host Name the first time the VM was launched after
being distributed. All other settings were automated by the sysprep process
...
|
3 |
28.05.2007 15:17:03 |
|
Copy folder by date
i need to copy a folder from one remote share to another based on the folder
creation date being today. the process is to copy last nights backup folder
to the other share. i am very close but just cant get it. i may need a WMI
script based on what i have read....
|
2 |
27.05.2007 05:07:35 |
|
Getting started with scripting
I need to take the plunge. I have been wanting to take the plunge, but
have been unable to.
I have some scripting (BASH mostly and a little VB), but not much.
With the new Powershell out, what are some recommended paths for
getting started with scripting? I have a nice domain to work with and
should have plenty of stuff to use for scripting.
I wanted to get some suggestions here on whe...
|
2 |
27.05.2007 02:31:09 |
|
Script to auto-convert mp4 files
Hi everyone
Im currently setting up a mp4 streamsever and need a script to auto-hint the
mp4 files that i send to the server.
The program for hinting the files is called mp4creator. I currently have a
script that hints the file, it looks like this:
Set objShell = CreateObject("WScript.Shell")
objShell.Run "%COMSPEC% /k mp4creator -hint=1 test.3gp",,True
objShell.Run "%COMSPEC% /k m...
|
1 |
25.05.2007 11:05:00 |
|
HP iLO rollout scripting
I'm reading various documentations on scripting but I'm having trouble on
where to start with applying concepts. I have 40 servers that I have to
implement/enable HP's Integrated Lights-out (I & II) on. With the exception
of scripting IP addresses, which I will do manually, what steps will I have
to go through to begin scripting the roll out?
If you can help me with anything more than...
|
1 |
24.05.2007 16:39:00 |
|
Network drive mapping
I need a script that I can use for mapping network drives at the group policy
level
(via) group object>user configuration>windows settings>logon
I'm a Desktop Tech, turned Sysadmin, so bare with me....
Thanks,...
|
3 |
24.05.2007 15:38:15 |
|
2000 to 2003 Migration - User accounts in both domains.
Scenario:
1. DomainA: Contains all user, computer, server (except as noted in
Domain B) accounts.
2. DomainB: Containers Exchange servers & voicemail (Cicso Unity)
servers. Each user that has email (most of them) also has a disabled
account in this domain. Same username in both domains.
3. A & B are trusted.
4. Each user's DomainA account is given Read, Full, Associated
External Ac...
|
1 |
23.05.2007 21:17:07 |
|
Connect to Printers in a Specific Location error
I am trying to use the script found at
http://www.microsoft.com/technet/scriptcenter/csc/scripts/print/printer/cscpr012.mspx
The script does remove all previously installed printers but then errors out:
Windows Script Host
Script: printlocation.vbs
Line: 65
Char: 1
Error: The printer driver is unknown
Code: 80070705
Source: Null
I am rather new to scripting, especially vbs. Than...
|
2 |
23.05.2007 19:28:00 |
|
Antivirus Check in Login Script
I got this link from MCPMag.com
http://mcpmag.com/columns/article.asp?EditorialsID=1768#post
For all of my remote users I'd like validate that some form of Antivirus is
installed and uptodate before they are validated to login. Would using a
PowerShell Script be the best way to do this or is there a better way using
AD? With a PowerShell Script would it be able to return these types...
|
2 |
23.05.2007 17:48:02 |
|
Retrieve user attributes by SamAccountName
Can anyone tell me how I can access user attributes (FullName, CN, Mail,
Manager, Domain Controler, etc) by querying SamAccountName rather than CN?
I.E. Instead of doing:
'Set objuser = GetObject("LDAP://cn=Dan
Zschomler,ou=Users,ou=Durham,ou=sites,dc=americasdc=Local")
Is there a way to do:
'Set objuser =
GetObject("LDAP://SamAccountName=dzschomler,ou=Users,ou=Durham,ou=sites,dc=am...
|
3 |
23.05.2007 16:10:40 |
|
Counting Files
Hello Groupies,
i would like to find files an delete them, if they exists. the syntax for
the files is FILE*.txt.
if i try to use the if exists syntax i get the error message, that the file
does not exists. i think its because of the *
maybee i can solve the problem, when i count all files FILE*.txt and if its
more then 0, i delete FILE*.txt
Can someone tell me how i can count the ...
|
11 |
23.05.2007 09:39:49 |
|
Trouble with login script
I am having trouble figuring this out, could someone help me. I wouldn't
doubt that I way out in left field.
Any help would be appreciated,
Dave
\\SERVER\Clients\Setup\setup.exe /s SERVER
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser
strUserName = objUser.samAccountName
strOUPath = objUser.Parent
ar...
|
6 |
22.05.2007 15:27:01 |
|
List - computer created date in AD
Hi ,
I am new to scripting.
How to List of computer with created date for only windows 2000 and 2003
servers.
I created script but not working. Please do the needful.
Thanks and Regards,
Ranjan
------------
Const ADS_SCOPE_SUBTREE = 2
dtmCreationDate = "20001230000000.0Z"
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB....
|
3 |
21.05.2007 12:19:01 |
|
Complex Group Query - Please help
Hello all, i really hope soemoen can help,
I've got quite a complex need for a script, i'll do my best to explain it in
simple terms.
I need a script that can do the following.
1. Display a prompt for a user ID to be entered
2. Find all the groups that user is a member of
3. Query each group against a comparison table (SQL table, text file, excel
spreadsheet - which ever is easiest ...
|
9 |
19.05.2007 03:43:25 |
|
Obtain list of DC's in current domain (local)
I want to run a script against just the DC's in the local domain or the
current machine if none detected.
My vbscript (wrapped inside an HTA) currently runs against "localhost" or
"." and I have to run it from each machine manually; it only gathers
information (does not change anything).
I want to be able to run it from one of the DC's (as a domain admin), have
the first part of the scri...
|
2 |
19.05.2007 03:00:56 |
|
Logon Script Samples
I have found myself responsible for administering a small lab network with a
server running Windows 2000 server. Does anyone know of any good online
logon script samples for doing things like automatically mapping network
drives, etc? It is pretty much a stock machine without any scripting tools
(e.g. kix32 (?)) added.
Any ideas will be greatly appreciated!
Thanks in advance!
Don
...
|
5 |
19.05.2007 00:47:19 |
|
A script to force a USB device to a drive letter
Is there a script for forcing a removable storage device like a USB
drive to always be a particular drive letter when a user plugs it into
a Server?
I find that in Windows 2003 standard R2 if I plug in one of 5 usb
drives I have then at some point the server will assign the drive with
a different drive letter!
Which isn't so good for designing backup scripts!
I've looked at 'diskpar...
|
2 |
19.05.2007 00:30:46 |
|
Create shortcut for a drive letter (c:) with batch file
Is there a way to create a shortcut of a drive letter (c:) with batch
file?
I tried with this "http://www.ss64.com/nt/shortcut.html" but nothing
happend!
...
|
4 |
18.05.2007 15:22:46 |
|
How to run a scheduled task via a batch job
How do I kick off a scheduled task in a batch script? We can bring up
the scheduled tasks GUI interface, select a job and click run to run
the job direct. But can I do it via a batch job?
...
|
4 |
18.05.2007 13:05:51 |
|
write to eventlog?
does anyone have an example of how to write to an eventlog in PowerShell? I
need to record success or failure of a script to Application log.
Thanks much....
|
2 |
18.05.2007 12:24:29 |
|
WMI script doesn't return data for root\MicrosoftExchangeV2
Hi,
I am trying to get a list of routinggroup / status, so i wrote a pretty
simple WMI script which is somewhat like this
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& strComputer & "\root\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Exchange_Server",,48)
For Each objItem in colItems
Ws...
|
1 |
18.05.2007 12:14:00 |