How can I get ipconfig /setclassid running through a logon script on Vista.

I have written a number of logon scripts to execute variations of this command at logon but it seems that it will not run for some users and they see a message
"The requested operation requires elevation"
Is there a way I can call this command at logon through this script?
Obviously I cannot use the runas command as I would then need to give the users the password to enter midway through the script.

In case you are reading this, std users need rights to change network settings. If the script is being run as the user, as in this case, you need to add the user to the network configuration group, locally to where they will log on. If this is a change on all pcs then create a group and if this is a domain change consider a group policy.Vince

Similar Messages

  • How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    Found an app to lock down the phone. SUREFOX!!!

  • How can I get authentication and authorization through OS X open directory with the Sun ZFS STOR ZS3-2

    how can I get authentication and authorization through OS X open directory with the Sun ZFS STOR ZS3-2
    I have configure NFS, I need help configuring the share that I created in the Sun ZFS STOR ZS3-2 to connect with the OS X Open Directory

    Hi,
        You may  try checking the help page for ldap configuration :
    https://<Appliance_IP>:215/wiki/index.php/Configuration:Services:LDAP
    ZFS Storage supports LDAP, NIS, AD as directory service.
    Hope Open Directory is also based on LDAP and may work in similar fashion.
    Thanks
    Nitin

  • IPod Nano 2nd Generation is requesting 4 digit code. I have never set a lock code. What is this and how can I get my Nano running again?

    iPod Nano 2nd Generation is requesting 4 digit code. I have never set a lock code. What is this and how can I get my Nano running again?

    There is no other way to bypass the combintation lock other than to connect the nano to iTunes and restore it to factory settings, erasing all content and settings from the iPod.
    B-rock

  • How can i get VMware to run to lion?

    vmware will not open on lion! how can i get the to run?

    You contact the VMware vendor and get their support.

  • How can i get the system language of machine in script

    Hi,
    During postinstall, i want to install file based on the system language.
    How can i get the system language of machine in script ?
    Thanks,

    Michael Conniff wrote:
    I don't get it: what you posted gives a list of all the languages (and I don't see what awk brings to the party).
    Hmm. On my laptop the first bit gets me the list of languages as they appear in the listing in the International preferences pane:
    (en, de, es, ja, fr, it, nl, sv, nb, da, fi, pt, "zh-Hans", "zh-Hant", ko)
    So I piped that to awk to pull out just the first one (they're ordered just like they are in the prefs pane, with the current language first). But that gives me some extra text:
    (en,
    So I piped that to sed to remove the comma and parenthesis. That gives me the current code, which in my case was "en" (or "de" if I switched the language).
    defaults read -g AppleLocale
    gives me en_GB. So maybe this last is better for you?
    Well, sure, if you want to do it the easy way. But where's the fun in that? Seriously though, I get en_US, which is a more accurate and complete view of my settings...
    charlie

  • Exchange 2013 remote session running as PowerShell version 2.0. How can I get it to run version 3.0?

    I'm trying to use the newer Powershell 3.0 features, particularly the ability to disconnect/reconnect a remote session, for our Exchange 2013 administration tools.  I have 3.0 on my workstation, and am connecting to a remote session on an Exchange 2013
    server (on Server 2012).   Even LOCALLY on the Exchange 2013 server Exchange Management Shell I get the same behavior:
    Exchange Command Shell on an Exchange 2013 server (running Windows Server 2012)
    [PS] >$PSVersionTable
    Name                           Value
    PSVersion                      3.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.19117
    BuildVersion                   6.2.9200.16628
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    [PS] C:\Windows\system32>Get-PSSession
     Id Name            ComputerName    State         ConfigurationName
      1 Session1        mercmbx35r.n... Opened        Microsoft.Exchange
    [PS] C:\Windows\system32>$session = Get-PSSession
    [PS] C:\Windows\system32>$session.ApplicationPrivateData.PSVersionTable
    Name                           Value
    PSVersion                      2.0
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    BuildVersion                   6.2.9200.16628
    CLRVersion                     4.0.30319.19117
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    How/where can I force the Exchange session to run version 3.0?
    Thanks in advance,
    Rick Tatem

    I still can't get it to work that way. I changed my cfexecute to:
    <cfexecute name="C:\windows\system32\cmd.exe" arguments="/c C:\Inetpub\wwwroot\captcha\#cmd_filename#" outputFile="C:\testoutput.txt" timeout = "90"></cfexecute>
    And I changed my bat file to have:
    <cfsavecontent variable="cmd_content">
    cd\
    TSC.exe /s "#newString#" C:\Inetpub\wwwroot\captcha\#FileName# Mary (for Telephone)
    </cfsavecontent>
    The output file is showing:
    C:\ColdFusion9\runtime\bin>cd\
    C:\>TSC.exe /s "3.....P.....4.....Z.....8.....U.....7.....X....." C:\Inetpub\wwwroot\captcha\3P4Z8U7X-105724.wav Mary (for Telephone)
    I still can't get it to run the exe. I have watched the process list while running this and the exe doesn't show up. I tried cfexecute on the exe directly before trying the bat method, with hard coded arguments, and it still didn't work. I am so lost right now this makes no sense to me.

  • Ipad stolen how can i get the books purchased through ebooks?

    Aside from being upset about my ipad being stolen! i have purchased a lot of books through ebooks.i would like to know how can i get them through itunes. Any suggestions?

    can i download them to my itunes account or it has to be download it to another ipad?
    They need to be downloaded on an iPad, iPhone or iPod touch since there is no iBooks app for the computer.

  • How can I get Snow Leopard running

    I have a 13'' Macbook that was running perfectly fine - I haven't had one issue since I bought it.  I bought the iphone 5 and needed to upgrade my itunes to version 7.  I was running Leopard 10.5.8 and needed to upgrade my OS to Snow Leopard in order to get itunes.  I ordered the software (10.6.3) and installed it on my computer.  The installation said it was successful.  I restarted my computer but I received a blinking folder with a question mark on it so I googled some solutions to see what could have gone wrong because the installation was successful.
    I have tried holding c, option, resetting the pram, disconnecting my battery and pressing the power button for 5 seconds, erasing my HD drive, restoring the HD drive with a Time Machine Backup, and everything else I was told to do but I can not get my computer up and running.  If I restart it, I keep receiving the blinking folder with the question mark.  I'm not sure how it can not recognize a OS when I go to Startup Disk, it lists my OS being 10.6.3.  When I boot the computer from the dvd, it just continues to ask me to install the software each time and I'm going in circles.
    Can someone please tell me what to do?  It seems that Apple doesn't know what to do, my hard drive was repaired (it wasn't broken), and the installation is going through sucessfully, why can't I get my computer running?
    HELP!  I'm a photographer and graphic designer and can't afford to be out of commission.  All I did was install a software, this shouldn't be this difficult.
    Thanks!

    Does your MacBook meet the minimum requirements for Snow Leopard?

  • How Can I get mod_rewrite to run on 10.6.4?

    Hi there,
    I've carried over a local wordpress install for some debug/dev purposes on to my local comp and encountered a few issues in getting permalink/mod_rewrite functions to run cleanly.
    I've noticed there's a number of posts in this forum about this but none of them appear to give a solution so far.
    My setup is as follows:
    /private/etc/apache2/httpd.conf
    /*Module section*/
    *LoadModule rewrite_module libexec/apache2/mod_rewrite.so*
    /* didn't know we needed this but read it on a blog post so gave it a shot*/
    *AccessFilename .htaccess*
    /* in <Directory> sections */
    *Options FollowSymLinks*
    *AllowOverride All*
    /* in <Directory "/Library/WebServer/Documents"> sections */
    *Options Indexes FollowSymLinks MultiViews*
    *AllowOverride All*
    I realise that the AllowOverride All at the <Directory> and <Directory "parent site"> are potentially overkill given that I only want to run the mod_rewrite for a particular user's directory. This then brings me to the specific users conf file (verbose here):
    /Private/etc/Apache2/users/[username].conf
    *<Directory "/Users/[username]/Sites">*
    *Options Indexes MultiViews FollowSymLinks*
    *AllowOverride All*
    *Order allow,deny*
    *Allow from all*
    </Directory>
    I then created a .htaccess in the user's site directory to call-up the mod_rewrite:
    *<IfModule mod_rewrite.c>*
    *Options +FollowSymlinks*
    *RewriteEngine On*
    *RewriteBase /~tariqscherer/*
    *RewriteRule ^index\.php$ - [L]*
    *RewriteCond %{REQUEST_FILENAME} !-f*
    *RewriteCond %{REQUEST_FILENAME} !-d*
    *RewriteRule . /~tariqscherer/index.php [L]*
    </IfModule>
    This code above was the rewrite recommended by WordPress, so I assumed that it would work. However, I do not get any rewrite action occurring whatsoever.
    The Apache error log (/var/log/apache2/error_log) gives me a File does not exist result:
    Mon Sep 06 16:03:55 2010 error client 192.168.1.18 File does not exist: /Users/[username]/Sites/about, referer: http://dasein-im-welt/~*[username]*/
    This error links back to the access log's GET 404 error (/var/log/apache2/access_log):
    192.168.1.18 06/Sep/2010:16:03:55 0200 "GET /~[username]/about/ HTTP/1.1" 404 218
    I've then tried to debug this process a little bit by starting a rewrite log over in the httpd.conf file with the following syntax:
    *RewriteLog /var/log/apache2/rewrite_log*
    *RewriteLogLevel 3*
    And then retrying hoping to trace some of the errors. Much to my surprise the log remains empty so I can only assume that the rewrite is simply not operating at all.
    I then thought I should try a simple rewrite test to ensure that the error wasn't from the wordpress .htaccess cod: and put through the following in my .htaccess file:
    *<IfModule mod_rewrite.c>*
    *Options +FollowSymlinks*
    *RewriteEngine On*
    *#RewriteBase /~tariqscherer/*
    *RewriteRule ^alice\.html$ index.php*
    *#RewriteRule ^index\.php$ - [L]*
    *#RewriteCond %{REQUEST_FILENAME} !-f*
    *#RewriteCond %{REQUEST_FILENAME} !-d*
    *#RewriteRule . /~tariqscherer/index.php [L]*
    </IfModule>
    I expected this rewrite to give me a rewrite over to index.php for an address entry of alice.html. However, no difference in terms of the end result - browser gives me a fail and logs are as follows:
    Access_Log:
    192.168.1.18 06/Sep/2010:16:19:15 0200 "GET /~[username]/alice.html HTTP/1.1" 404 222
    Error_Log:
    Mon Sep 06 16:19:15 2010 error client 192.168.1.18 File does not exist: /Users/[username]/Sites/alice.html
    Oh and the rewrite_log, though created, remains blank.
    I can therefore only assume that the mod_rewrite is simply not being called at any point and not rewriting the http GET requests in any form whatsoever to correct directory.
    My Question therefore is.
    Has anybody managed to get the mod_rewrite running under Mac OS X 10.6.4? Taking into account that:
    1. .htaccess is set by the AccessFile in httpd.conf
    2. AllowOverride All is set in the httpd.conf root <Directory> and <Directory "location"> sections, as well as in the [username].conf file.
    3. FollowSymLinks is also set under all options
    4. +FollowSymLinks is also set as an added precautionary measure in the .htaccess file
    I would be greatful for any help on this whatsoever.
    Tariq Scherer
    PS: the username used on my comp was substituted by [username] above, I hope this can help for anybody else to just substitute the entries out on their own local config or to provide a comparison entry.

    HI All,
    This isn't a solution per se, but in order to overcome the .htaccess rewrite calls limitations I had to:
    1. Rebuild Apache (up to 2.2.16) and explicitly specifying a rebuild with enable-rewrite
    2. Rebuild PHP in order to get a native module going.
    This solution works, I event went as far as just carrying over the exact same config files over to the new Apache install. There seems to be a block in the native Apache binary build that prevents usage of .htaccess (security reasons I presume?).
    The catch, however, is you will get pid locks over the two installs unless you explicit a separate lock file and you won't be able to call up the new Apache install from the preference panel in OS X fashion - need to be a bit patient with the terminal is all.
    For the apache install, you have to make sure you set a prefix location that suits you (and remember the put that prefix then over for the module load in your config as it won't be able to access your old .so modules):
    sudo ./configure --prefix=/usr/local/apache2 --enable-rewrite
    Also note, that when recompiling php with mysql support, a few config options need to be set to disable the cgi build options (not sure why, but it does the trick). The command for the PHP rebuild is as follows:
    ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --disable-cgi
    Kind Regards,
    Tariq Scherer
    http://twentyfoursomething.wordpress.com/

  • How Can I get My iMac Running again when its stuck in the Loading boot up Screen?

    My 2010 21.5 Imac wont  stop loading, The wheel just keeps spinning and it doesn't even boot in safe mode. the only thing i can do is get into single user mode. My Mac doesn't respond to command + r. I am able to pull up a disk to boot from but it doesn't show a recovery disk, only "Macintosh HD", when i click it I'm back at the apple logo screen with spinning wheel.At this point i want to do one thing and that is factory reset the computer. a fresh install, delete everything, NO BACK UPS. I don't have the install CD (This Computer had a previous owner). If i were to buy a copy of the OS X from the apple store (I believe my computer was running 10.6.8, Im not 100%sure and i dont now how to find out at this point) would i be able to even put the CD in the disc drive? would it read the CD even though its stuck in the boot up(loading) screen? How would i get it out if the Drive doesn't read the disk? Do I have Other options? Thanks guys!

    You are using Snow Leopard. There is no COMMAND-R for a startup. That's for Lion or later.
    Call Apple and purchase replacement discs for your model. You cannot use the retail version of Snow Leopard on your model. You have no other options unless you have the original discs that came with the computer. When you get the discs:
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. Be sure you configure your initial admin account with the exact same
             username and password that you used on your old drive. After you finish Setup
             Assistant will complete the installation after which you will be running a fresh
             install of OS X.  You can now begin the update process by opening Software
             Update and installing all recommended updates to bring your installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • How can I get my songs purchased through iTunes to play on a windows phone

    My wife recently got a HTC One M8 (windows) phone and wants to transfer her music purchases over to her new phone. How can the AAC protection be removed so the music will play on something other than an Apple product?

    AAC is not protection, it is just an audio file format, like MP3.
    Itunes purchases have not been DRM protected for many years.
    Convert the songs to an audio file format that the new phone will play, then follow the directions for the phone to put the music on it.

  • How can I get Automator to run every hour

    Hello,
    I want to run a Unix Shell executable every hour (measuring network bandwidth), but automator only seems to be able to go down to once  a day. Is there anyway of getting automator to run the executable every hour?

    If you already have the shell script then skip Automator and use launchd(8)  to run the script on what ever schedule you'd like.
    There are many good tutorials and examples of using launchd  see Creating Launch Daemons and Agents - Apple Developer and Mac OS X launchd examples  for a start.
    Also see http://launched.zerowidth.com/ as one way to automate making the plist file.
    regards

  • How Can i get PLSQL Procedure out values in Shell Script?

    Hi,
    I need to use PLSQL Procedure out values in shell script by using that parameter i need to check and call the other procedure. Please can you guide me how can i?
    #!/bin/ksh
    # Function to call validation program
    SQL_PKG_CALL()
    echo "Inside SQL_PKG_CALL for $file"
    sqlplus -s /nolog << EOF
         whenever sqlerror exit failure
         connect ${APPS_LOGIN}
         variable exit_value NUMBER
         set serveroutput on size 100000
         DECLARE
              l_errbuf VARCHAR2(10000) := NULL; l_retcode NUMBER := NULL;lv_test VARCHAR2(4000) := NULL;
         BEGIN
              fnd_global.apps_initialize ( USER_ID => ${USER_ID}, RESP_ID => ${RESP_ID}, RESP_APPL_ID => ${RESP_APPL_ID}
                             , SECURITY_GROUP_ID => ${SECURITY_GROUP_ID}
              #Calling PLSQL procedure for create and attache document
              XXAFPEEP_SO_DOC_ATTACH_INT.DOCUMENT_ATTACH (p_errbuf => l_errbuf, p_retcode => :RETMSG, p_fileName => $file
                                       , p_debug => 'Y', p_rettest => lv_test);
              # to print the procedure return values
              DBMS_OUT.PUT_LINE('Return Message: '|| lv_test);
              #${RETCODE}=l_retcode;
              print :RETMSG;
         END;
    EXIT 0
    EOF
    # Program starts here
    echo "+---------------------------------------------------------------------------+"
    echo "Program Start"
    APPS_LOGIN=${1} # Apps Login
    USER_ID=${2} # User ID
    RESP_ID=${5} # Responsiblity ID
    RESP_APPL_ID=${6} # Responsiblity Application ID
    SECURITY_GROUP_ID=${7} # Security Group ID
    DIRECTORY_PATH=${8} # Directory --Attached file locations
    DIRECTORY_NAME=${9} # Directory Name for plsql
    echo "User ID : $USER_ID"
    echo "Responsibility ID : $RESP_ID"
    echo "Responsibilith Application ID : $RESP_APPL_ID"
    echo "Security Goup ID : $SECURITY_GROUP_ID"
    echo "Directory Path : $DIRECTORY_PATH"
    echo "Direcotry Name : $DIRECTORY_NAME"
    echo
    #files direcotry
    cd $DIRECTORY_PATH
    echo Present Working Directory: `pwd`
    echo
    #for all file names
    ALL_FILES=`ls *.pdf`
    for file in $ALL_FILES
    do
         if [ -f $file ]
         then
              #log "Processing $file" # future
              echo Processing: $file
              # Calling the PL/SQL Program
              SQL_PKG_CALL;
              #echo "Retcode : $RETCODE"
              echo "RetMessage : $RETMSG"
         else
              log "Skipped $file: invalid file"
              echo "Skipping current file $file: not a valid file."
         fi
    done
    Thanks
    Sudheer

    Saubhik's provided the solution, but just for fun:
    Test procedure:
    create or replace procedure get_ename
       ( p_empno in emp.empno%type
       , p_ename_out out emp.ename%type )
    is
    begin
       select ename into p_ename_out
       from   emp
       where  empno = p_empno;
    end get_ename;Test data:
    SQL> select empno, ename from emp order by 1;
    EMPNO ENAME
    7369 SMITH
    7499 ALLEN
    7521 WARD
    7566 JONES
    7654 MARTIN
    7698 BLAKE
    7782 CLARK
    7788 SCOTT
    7839 KING
    7844 TURNER
    7876 ADAMS
    7900 JAMES
    7902 FORD
    7934 MILLER
    14 rows selectedTest call from SQL*Plus to show it working:
    SQL> declare
      2     v_ename emp.ename%type;
      3  begin
      4     get_ename(7844,v_ename);
      5     dbms_output.put_line(v_ename);
      6  end;
      7  /
    TURNER
    PL/SQL procedure successfully completed.Demo shellscript (borrowing the function idea from Saubhik):
    #!/bin/ksh
    empno=${1:-NULL}
    exec_sql() {
        sqlplus -s william/w@//vm.starbase.local:1521/eleven <<END_SQL
        spool get_out_value.sh.log
        set serverout on size 2000 feedback off
        declare
           v_name emp.ename%type;
        begin
           get_ename(${empno},v_name);        
           dbms_output.put_line('# ' || v_name);
        end;
        spool off
        exit
    END_SQL
    ename=$(exec_sql ${empno} | awk '/^# / {print $2}')
    print Employee ${empno} = ${ename}Demo:
    /Users/williamr: get_out_value.sh 7844
    Employee 7844 = TURNER
    /Users/williamr: get_out_value.sh    
    Employee NULL =Note this substitutes the word NULL if no empno is passed, and it ignores error output or anything else by only looking for lines beginning '# ' and then taking the following word. Error messages will appear in the logfile. (In this example it probably doesn't need the NULL substitution because a missing parameter would cause a syntax error which the script will handle anyway, but it could be useful in more complex examples.)
    For a production script you should probably use an OS authenticated account so you don't have to deal with password strings.

  • How can I get TV shows viewed through Hulu Plus on the Apple TV 3 to show as widescreen with black bands above and below the screen shot instead of chopping off the sides on my non-widescreen TV?

    I just bought a new Apple TV 3 today so I can watch shows from Hulu Plus without having to physically plug in separate audio and video cables from my Macbook Air to the TV every time. I have a non-widescreen TV and when I normally watch Hulu Plus on the TV (though Safari on my plugged in Macbook Air as mentioned above), the entire wide screen shot is shown with black bands above and below the sceen shot since I am watching a widescreen program on a non-widescreen TV.
    However, I noticed that when I watch the same show through Hulu Plus on my new Apple TV 3, the left and right edges of the shot are chopped off to make the program fill my non-widescreen TV. This bothers me because I would like to see the full shot and not just the chopped off middle portion. This is a real bummber because watching Hulu Plus without having to plug in my laptop is the only reason I bought the Apple TV. Is there anything I can do about this?
    Thanks!
    (FYI: I have the very first Macbook Air that is not capable of mirroring)

    How are you actually connected to the TV?  Does it have HDMI?  Most non-widescreen TVs would not.
    I would suspect a converter is either not outputting properly, your TV not interpreting the signal properly or you have some form of Zoom setting enabled on the TV.
    How does your TV handle widescreen from say cable or terrestrial TV sources ?
    Unfortunately AppleTV is not designed to be used with non-widescreen TVs so there's no setting on AppleTV to tweak.
    AC

Maybe you are looking for