Scripting the deletion of workstation

Is there a way to automate the deletion of workstations from the ZAM database using a script. The toolkit use to have a command line utility that would delete a workstation from the database.
Thanks.

saskmcross said on 6/4/2008,
>Is there a way to automate the deletion of workstations from the ZAM
>database using a script. The toolkit use to have a command line
>utility that would delete a workstation from the database.
Last I knew, most of the utilities had been pulled and there are no plans
to re-release these tools either.
Jared Jennings - Data Technique, Inc.
Novell Support Forums Sysop
My Blog and Wiki with Tips, Tricks, and Tutorials
http://jaredjennings.org

Similar Messages

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • Script that deletes all the data in the DB

    Somebody has or know a script that delete all the data (but not the tables) of the database???? I have dummy data and know I need the tables clean of data.
    How can I delete it???????? Thank you for you help
    Javier

    You could truncate all the tables with the following commandTRUNCATE TABLE <table_name>;This will delete all the data in the table while keeping the table structure, contraints, indexes, triggers, etc. intact so they wont have to be rebuilt. All foreign keys must be disabled to use the TRUNCATE command.

  • Recover the deleted script

    Hi all,
    By mistake one script is deleted from the system from the
    local ( $TMP ) directory ( package ).
    Is there any way to get back the script....
    Thanks and Regard,
    Santhosh

    Database backup.
    A

  • Looking for help with PowerShell script to delete folders in a Document Library

    I'd like to create a PowerShell script to delete old folders in a Document library that are over 30 days old. Has anyone created something like this?
    Orange County District Attorney

    Hello Sid:
    I am trying to do the same and Iam running the script to delete the subfolders inside a folder  but I have some errors. 
    Could you please take a look?
    _______Script________
    $web = Get-SPWeb -Identity https://myportal.mydomain.com
    $list = $web.GetList("ar_mailingactivity")
    $query =  New-Object Microsoft.SharePoint.SPQuery 
    $camlQuery = '<Where><And><Eq><FieldRef Name="ContentType" /><Value Type="Computed">Folder</Value></Eq><Leq><FieldRef Name="Created" /><Value Type="DateTime"><Today OffsetDays="-30" /></Value></Leq></And></Where>'
    $query.Query = $camlQuery
    $items = $list.GetItems($query)
    for ($intIndex = $items.Count - 1; $intIndex -gt -1; $intIndex--)
       $items.Delete($intIndex);
    ________Errors_______
    Unable to index into an object of type System.Management.Automation.PSMethod.
    At C:\Script.ps1:2 char:22
    + $list =$webGetList <<<< "ar_mailingactivity"]
    + CategoryInfo
    :InvalidOperation: (ar_mailingactivity:String) [], RuntimeException
    + FullyQualifiedErrorID
    :CannotIndex
    You cannot call a method on  a null-valued expression.
    At c:\Script.ps1:6 char:24
    + $items = $list.GetItems <<<< ($query)
    + CategoryInfo
    :InvalidOperation: (GetItems:String) [], RuntimeException
    + FullyQualifiedErrorID
    :InvokeMethodOnNull

  • Script to delete old folders from an archive directory

    Hi, I am new to powershell scripting, working on a script to purge older folders after the files in these folders are processed. I would want to set a limit lets say 15 days old. Any help is greatly appreciated.
    Thanks in advance...........
    Ione

    Here's something you can play with:
    $folder = 'C:\NetworkShare\Archive'
    $cutoffDate = (Get-Date).AddDays(-15)
    Get-ChildItem -Path $folder -File |
    Where { $_.LastWriteTime -lt $cutoffDate } |
    Remove-Item -WhatIf
    This will only attempt to delete the files in your specified folder. The -File switch does need at least v3 of PowerShell.
    If you're happy with the output, remove the -WhatIf switch to actually do the deletion.
    EDIT: Ah, I see I'm slow on the submit button. See above.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Need a script to delete files

    Hi
    Can someone advise me on how to create a script to delete certain files from a users home account at logout?
    The files that I want deleting are .plist files in there ~/lib.../preferences folder, this is so I can ensure that all users will have the same settings for certain files next time they login again.
    Thanks

    That being said, if you you still really want to do this you can create a logout hook and write a shell script to remove the files.  See "About Daemons and Services", Appendix B on writing a logout hook.
    But a far easier way is to create Account's login item that will cause a shell script to be launched to delete the files.  You can encapsulate the shell script so it runs as an application that can be added to the Login Items.  One such encapsulator is Platypus.
    Note, rather than delete them, if you want to ensure all the specific plists have specific settings, then create a master set of them and copy the master set into the Preferences directory (being careful to observe ownership and permissions settings of course).

  • Rule or script to delete specific attachments in Mail?

    Some people send signature images with every email, wasting disk space and making it difficult to search for emails with useful attachments.
    I would like to have a rule or script that deletes PointlessLogo.gif from incoming mail, while leaving other attachments intact.
    A search of the archives turns up a thread from years ago asking the same thing, apparently it was not possible with OS 10.4 (https://discussions.apple.com/message/4133181#4133181).
    Does this capability exist in Mountain Lion?

    Some people send signature images with every email, wasting disk space and making it difficult to search for emails with useful attachments.
    I would like to have a rule or script that deletes PointlessLogo.gif from incoming mail, while leaving other attachments intact.
    A search of the archives turns up a thread from years ago asking the same thing, apparently it was not possible with OS 10.4 (https://discussions.apple.com/message/4133181#4133181).
    Does this capability exist in Mountain Lion?

  • How to branch to the delete link in report

    Hi all,
    i have a report with delete button in all rows.when i click the delete button the row should get deleted.
    To achieve this , I have given like this..........
    In the column link
    link text : image of the delete button
    link attributes : &APP_ID.
    In the URL : javascript:confirmDelete('Are u sure u want to delete','f?p=&APP_ID.:7:&SESSION.:DELETE1:&DEBUG.:RP:P7_ACT_NO,P7_EDACTIVITY:#Delete#,-1');
    I have created a delete process : after submit
    with condition request=expression1
    In Expression1 i have given DELETE1
    Problem is: it is not getting deleted and it is asking for branching.
    could any one give a suggestion to achieve this?
    Hope my procedure is correct.If not please correct me.
    Thanks in adance
    bye
    Srikavi

    Hi Srikavi,
    Firstly, two points:
    1 - There are other ways to do this - for example, you could have used a tabular form which provides delete functionality
    2 - Your url says P7_ACT_NO but your delete statement says P7_ACT_NO_1???
    OK - now the process (I haven't done this for deletions, I've done it for insertions, but the principles should be the same).
    1 - You don't need a REQUEST value if page 7 does nothing but delete the data, so your url should be:
    'f?p=&APP_ID.:7:&SESSION.::&DEBUG.::P7_ACT_NO,P7_EDACTIVITY:#Delete#,-1'
    2 - On page 7, you should have a region that contains the two items that will receive the data from the url: P7_ACT_NO and P7_EDACTIVITY (you haven't explained what the second field is for!?!?!)
    3 - The region on page 7 should have a button to submit the page. I'll call it P7_BUTTON. When creating the button, you can specify that it branches back to the original report page and repaginates
    4 - In my version, I have hidden the region by adding the following into the region's header:
    &lt;DIV style="display:none;"&gt;
    and the following in the region's footer:
    &lt;/DIV&gt;
    &lt;script type="text/javascript"&gt;
    doSubmit('P7_BUTTON');
    &lt;/script&gt;
    I hide the contents of the page so that the user doesn't see anything on screen whilst the deletion is taking place.
    The javascript automatically clicks the button which submits the page.
    5 - Your process to delete should be conditional on P7_BUTTON being clicked - no need to use a REQUEST value
    That should be it.
    Basically, when you click your button, it passes two values to page 7. Because the javascript on page 7 isn't within a function, it will run automatically. This clicks the button, which submits the page. Your delete process kicks in and deletes the record specified in the P7_ACT_NO field. And, finally, the branch (created when you create the button) will return the user to the original reports page
    You could do away with the button and have the process run "Before Header" as long as you are sure that the fields will be populated correctly - in my case, because I'm inserting data, I need to do validation first.
    Andy

  • Is there a script to delete frames?

    Hi
    is there a script to delete frames on photos?
    often i have to delete black or white frames or others colors , i 'm looking for a script to do it
    thanks
    cheers

    Well, in cases like this, the only thing I can think of is to create an action which simply crops the canvas, but place a stop action on the script to allow you to manually enter how much you want to crop. But again, you would have to manually determine how many pixels you need to crop inwards.
    I thought you were going to show an image that had (say a 20 pixel white/black border) - then I would have said you could use the magic wand (or maybe "select color"), then create an action to reverse that selection then crop, but that wouldn't work with this photo. If all the images have the same thickness of border, you can create an action to just crop the image X amount of pixels. Do ALL your images have this exact border?

  • Script for deleting objects on pasteboard

    Anyone have a script that deletes all objects and text outside the page (or margins)?

    Unfortunately in my Indi CS6 any pasteboard and spread item is "instance of spread".
    So i consider geometrical bounds:
    myDocument = app.activeDocument
    cur_Ruler = myDocument.viewPreferences.rulerOrigin;
    with(myDocument.viewPreferences){
        rulerOrigin = RulerOrigin.spreadOrigin;}
    myDocument.zeroPoint = [0,0];
    aWidth = myDocument.documentPreferences.pageWidth*2+10;
    var objs = app.documents[0].pageItems.everyItem().getElements();
    while(obj=objs.pop()){
    a_left = obj.geometricBounds[1];
    a_right = obj.geometricBounds[3];
         if(a_right <0 || a_left > aWidth){obj.remove()}
    with(myDocument.viewPreferences){
        rulerOrigin = cur_Ruler} //back to the RulerOrigin

  • Lock the delete function (Trash) for contract documents

    Dear Experts,
    I have Query in SAP CLM :
    I am in need to lock the delete function (Trash) for contract documents after they have been executed. After a user sets the contract document phase at "Executed," they should not be able to click the trash icon and delete that contract document record.
    Thanks in advance.
    Best Regards,
    Iqbal

    Hi Mudit,
    we  have already  script  for Contract Document and Post Phase Change.
    I am not java expert, where to put the code for delete or inactive the trash icon in this programe, Pls Help
    // Author: ABCD
    // Class: Contract Document
    // Context: Document Lifecycle Event
    // Target: Post Phase Change
    // Imports
    import com.frictionless.api.doc.IapiDocumentLockManager;
    import com.frictionless.api.common.types.ObjectReferenceIfc;
    import com.frictionless.api.common.types.TypeFactory;
    import com.frictionless.api.contracts.ContractIBeanIfc;
    import com.frictionless.common.db.PersistentBo;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.common.log.Logger;
    import java.math.BigDecimal;
    import java.util.*;
    import com.frictionless.api.doccommon.masterdata.*;
    import com.frictionless.api.common.exception.*;
    import com.frictionless.api.ibean.IBeanIfc;
    import com.frictionless.api.ibean.IBeanHomeIfc;
    import com.frictionless.api.contracts;
    import com.frictionless.api.usermgmt.masterdata.*;
    import com.frictionless.api.common.exception.*;
    import com.frictionless.api.common.types.*;
    import com.frictionless.api.ibean.*;
    ApplicationException ae = new ApplicationException(session);
    // Logger
    logMsg = Logger.createLogMessage(session);
    // Agreement Bean
    agreeBean = doc.getParentIBean();
    if (hasValue(current_phase))
    // Lock the legal approval and workflow fields after draft phase
    if (current_phase.equals("Draft"))
    IapiDocumentLockManager.unlockField(session, doc, "CLAUSE_CHANGE");
    IapiDocumentLockManager.unlockField(session, doc, "LEGAL_APPROVER");
    if (!(current_phase.equals("Draft")))
    IapiDocumentLockManager.lockField(session, doc, "CLAUSE_CHANGE");
    IapiDocumentLockManager.lockField(session, doc, "LEGAL_APPROVER");
    // If contract document phase is not Internal Approval
    if ((current_phase.equals("Executed")))
    agreeBean.getIBeanHomeIfc().upgradeToEdit(agreeBean);
    collaboratorList = agreeBean.getCollaborators();
    for (collabIter = collaboratorList.size(); collabIter > 0; collabIter--)
    // Get the collaborator
    collab = collaboratorList.get(collabIter-1);
    name = collab.getDisplayName();
    if (!collab.getCollaboratorRole().getDisplayName().equals("Owner") @and !collab.getRepresenting().getDisplayName().equals("Legal"))
    collaboratorList.delete(collab);
    agreeBean.getIBeanHomeIfc().save(agreeBean);
    if ((current_phase.equals("Internal Approval")) @or current_phase.equals("Legal Approval"))
    agreeBean.getIBeanHomeIfc().save(agreeBean);
    agreeBean.getIBeanHomeIfc().downgradeToView(agreeBean);

  • Script to delete expired or errored scheduled workbooks for Discoverer

    Hi All,
    Can any one pont me to find a script to delete all expired and Errored workbooks in Database for discoverer?
    Appreciate all your assistance.
    Thankks
    -S

    Hi Asim,
    I don't think you can share the results of the scheduled workbook using Desktop. As for Plus, when you're signed on as the other user are you in the same database & eul and are you looking for "scheduled workbooks"?
    Brent

  • Need help to find a good shell script to delete logs, tablespace check, etc

    Can you help me to find a good working shell script to run as a cron job to check tablesapce free space per thredhold and delete old trace files, .aud files, etc.
    Thanks,

    refer the links:-
    http://www.shutdownabort.com/dbaqueries/Structure_Tablespace.php
    http://gavinsoorma.com/unix-for-the-dba/
    Shell script to delete archive logs that are 10 days old.
    Re: How to delete archivelogs ???????
    http://kmit4u.blogspot.com/2010/10/shell-script-backup-oracle-database-by.html

  • Script to delete files created on a specific date with sepecific name

    Hi,
    Is it possible to help me with a powershell script that delete files under a folder and subfolders that have the following attributes
    1. have the name (default.*) and (index.*)
    2. created on a specific date say 1-9-2014
    3. created between specific time say between 10:00 - 16:00
    Thanks in advance!

    break out the components of the script.
    IE does this match 
    Get-ChildItem -Recurse c:\temp\*.*or Get-ChildItem -Recurse c:\temp\*.* | Where-Object {$_.CreationTime -gt (get-date "01-09-2014 10:00AM") -and $_.
    CreationTime -lt (get-date "01-09-2014 14:00PM")}Get-ChildItem -Recurse c:\temp\*.* | Where-Object {$_.CreationTime -gt (get-date "01-09-2014 10:00AM") -and $_.
    CreationTime -lt (get-date "01-09-2014 14:00PM")} | Where-Object {$_.name -match "default"}Might not be working as it might not be matching.Once you get it matching the remove-item will work.
    Cheers,
    Martin
    Blog:
    http://sustaslog.wordpress.com 
    LinkedIn:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Maybe you are looking for

  • Wireless connection MacBook Air to HP4500

    I have a MacBook Air running Mavricks and an HP Officejet 4500 G510n-z.  All worked well together.  We changed our COMCAST wireless home router.  We can no longer wirelessly connect to the HP4500.  A USB connetion still worked to the HP.  All other h

  • Reinstalling Virtual PC 7

    I uninstalled Virtual PC 7.0.2 a while ago, and upon trying to reinstall it now (from the 7.0 CD, 7.0.2 is a downloadable update), the install only wants to copy 686kb of the program. When I run the 7.0 unsintaller, it crashes, which I found is a kno

  • No setup cartridges in new printer purchase

    Hello, I was trying to setup the printer (HP OfficeJet Pro 8600, but could not find the setup cartridges needed for new printer.  I checked, there is retail sell of these cartridges.  What are my option? Thanks, Atik

  • Still images show as blurred unless movie is paused

    I have imported some still images into FCPX, and when viewed in the event browser or in the movie in the timeline they look fine while the movie is paused. But as soon as I start playback, they go a bit blurred. I have tried .psd and .png. Can anyone

  • How to get a called procedure/function name within package?

    Hi folks, is it possible to obtain a called procedure/function name within package? For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if neede