Results 1 to 4 of 4
  1. #1
    Newcomer
    Join Date
    Jul 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Location
    NC
    Posts
    200
    Thanks
    0
    Thanked 12 Times in 11 Posts

    Default

    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

  3. #3
    Moderator moon-buddy's Avatar
    Join Date
    Aug 2005
    Location
    Somewhere in the US
    Posts
    5,858
    Thanks
    4
    Thanked 228 Times in 223 Posts

    Default

    Use this:

    .\dsmadmc.exe -id=admin -password=xyz123 "define schedule Admin01 type=administrative cmd='query process' active=yes starttime=now"
    Ed

  4. The Following User Says Thank You to moon-buddy For This Useful Post:

    FloXXI (12-19-2012)

  5. #4
    Newcomer
    Join Date
    Jul 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks moon-buddy! It works like that.

    Quote Originally Posted by moon-buddy View Post
    .\dsmadmc.exe -id=admin -password=xyz123 "define schedule Admin01 type=administrative cmd='query process' active=yes starttime=now"

Similar Threads

  1. sqllog.cmd and sqldiff.cmd Fails with schedule
    By nikhil_1707 in forum TSM Client
    Replies: 4
    Last Post: 09-08-2011, 01:53 AM
  2. objshell.run windows scripting command
    By rdemaat in forum Scripting
    Replies: 1
    Last Post: 12-31-2010, 09:15 AM
  3. Smart Command Line Scripting in Windows
    By ironzulu in forum Scripting
    Replies: 1
    Last Post: 04-01-2009, 06:59 AM
  4. help with quotes
    By influx in forum Scripting
    Replies: 6
    Last Post: 03-07-2009, 02:15 AM
  5. DRM Scripting || Windows
    By Rick111 in forum Disaster Recovery Module
    Replies: 2
    Last Post: 11-21-2007, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •