Results 1 to 4 of 4
-
12-19-2012, 03:55 AM #1Newcomer
- Join Date
- Jul 2012
- Posts
- 8
- Thanks
- 1
- Thanked 0 Times in 0 Posts
Scripting in Windows Powershell or CMD - Quotes
hi all,
i tried to do some tsm scripting in windows powershell/cmd, but i have issues using quotes.
when i try to run the following command in powershell or cmd
.\dsmadmc.exe -id=admin -password=xyz123 define schedule Admin01 type=administrative cmd="query process" active=yes starttime=now
i always get the error
ANS8000I Server command: 'define schedule Admin01 type=administrative cmd=query process active=yes starttime=now'
ANR2004E Missing value for keyword parameter - process.
ANS8001I Return code 3.
ANS8002I Highest return code was 3.
i already tried using
.\dsmadmc.exe -id=admin -password=xyz123 define schedule Admin01 type=administrative cmd="`"query process`"" active=yes starttime=now
but the result is just the same.
is anybody experienced with scripting tsm in windows powershell or cmd an may help me how to use the quotes?
thank you
-
12-19-2012, 10:35 AM #2Senior Member
- Join Date
- Dec 2004
- Location
- NC
- Posts
- 200
- Thanks
- 0
- Thanked 11 Times in 11 Posts
I am not an expert with Powershell or windows scripting but have you tried just single quotes?
.\dsmadmc.exe -id=admin -password=xyz123 define schedule Admin01 type=administrative cmd='query process' active=yes starttime=now"If we knew what it was we were doing, it would not be called research, would it?" -- Albert Einstein
-
12-19-2012, 02:58 PM #3Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,300
- Thanks
- 2
- Thanked 137 Times in 135 Posts
Use this:
.\dsmadmc.exe -id=admin -password=xyz123 "define schedule Admin01 type=administrative cmd='query process' active=yes starttime=now"Ed
-
The Following User Says Thank You to moon-buddy For This Useful Post:
FloXXI (12-19-2012)
-
12-19-2012, 03:08 PM #4Newcomer
- Join Date
- Jul 2012
- Posts
- 8
- Thanks
- 1
- Thanked 0 Times in 0 Posts
Similar Threads
-
sqllog.cmd and sqldiff.cmd Fails with schedule
By nikhil_1707 in forum TSM ClientReplies: 4Last Post: 09-08-2011, 01:53 AM -
objshell.run windows scripting command
By rdemaat in forum ScriptingReplies: 1Last Post: 12-31-2010, 09:15 AM -
Smart Command Line Scripting in Windows
By ironzulu in forum ScriptingReplies: 1Last Post: 04-01-2009, 06:59 AM -
help with quotes
By influx in forum ScriptingReplies: 6Last Post: 03-07-2009, 02:15 AM -
DRM Scripting || Windows
By Rick111 in forum Disaster Recovery ModuleReplies: 2Last Post: 11-21-2007, 01:35 PM


Reply With Quote
