Looking for a PowerShell Script

there is a way to add someone to the admin group, but this would require that you already have admin rights.

You'll have to forgive me, Im a little green in powershell. I work at a school where I will be needing to give a few student admin rights temporarily on a per period basis. Is there a script that would be able to enable admin rights to that student just for a certain time period and then take it away? Thanks for your help in advance!
This topic first appeared in the Spiceworks Community

Similar Messages

  • Looking for a Powershell Script which can put the scom servers in maintenance mode

    Looking for a Powershell Script which can put the scom servers in maintenance mode so that SCOM should not send an alert during planned task.
    Rahul

    1. Provide list of servers line-by-line in C:\ServerList.txt, make sure you provide limited no. of servers, do not exceed 20 - 25 per batch
    2. Save the script with suitable name (test.ps1)
    3. Open PowerShell cmd prompt
    4. Script accepts 3 params - TimeInMinutes, Reason and Comment
    **** Please note, this script will work for SCOM 2012 R2
    param([int32]$TimeMin, [string]$Reason, [string]$Comment)
    try
    $api = new-object -comObject 'MOM.ScriptAPI'
    Import-Module operationsmanager
    New-SCOMManagementGroupConnection
    $Servers = Get-Content "C:\ServerList.txt"
    $Time = (Get-Date).Addminutes($TimeMin)
    Foreach ($Server in $Servers)
    #Get Computer instance
    $ComputerClass = Get-SCOMClass -Name Microsoft.Windows.Computer
    $ComputerClassInstance = Get-SCOMClassInstance  -Class $ComputerClass | Where {$_.DisplayName -eq $Server}
    If ($ComputerClassInstance -ne $Null)
    $HealthServiceWatcherClass = Get-SCOMClass -name:Microsoft.SystemCenter.HealthServiceWatcher
    #Get Health Service Watcher Class instance of the server
    $HSWClass = Get-SCOMClass -Name Microsoft.SystemCenter.HealthServiceWatcher
    $HSWClassIns = Get-SCOMClassInstance  -Class $HSWClass | Where {$_.DisplayName -eq $Server}
    #Starting the maintenance mode
    Start-SCOMMaintenanceMode -Instance $HSWClassIns -EndTime $Time -Reason $Reason -Comment $Comment
    Start-SCOMMaintenanceMode -Instance $ComputerClassInstance -EndTime $Time  -Reason $Reason -Comment $Comment
    Write-Host "Health Service Watcher and Agent server "$Server " kept in maintenance mode"  -foregroundcolor "green"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 200, 0, "$Server kept in maintenance mode for $TimeMin minutes")
    Else
    Write-Host $Server" not found " -foregroundcolor "red"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, "$Server could not be found in domain")
    Catch [system.exception]
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, $_.Exception.Message)
    Faizan

  • Looking for someone to script a Day Planner to a specific size and style.

    Hi,
    Looking for someone to script a year long Day Planner in Indesign CC. I've tried one or two scripts available out there but none seem to be able to accomplish what I need.
    I would envisage the rolling requirements.
    2015
    Day per page
    Set to a specific Design Style
    Fully Editable style hierarchy
    Ability to add in pages without kicking anything out
    Include Month with highlighted day on right hand page only
    Add localised public holidays
    Add another list of 'special dates'
    Fit size 148.5mm W x 210mm H (would be great to have it scaleable but not essential)
    All/any help appreciated. Here's a screen shot of the desired result.

    Hi Jarek,
    Thanks for the response!
    The script needs to create the pages in an Indesign Doc.
    One the pages are created we would be adding in custom pages at beginning and at other periodic stages in the document.
    Let me know if there's anything else you need
    Mark

  • Graphic Designer looking for a quick script

    Hi all,
    I've been doing a lot of searching and I just can't find it... I'm looking for a script to have Distiller open up .pdf files after it's done distilling. the .eps file. Is there a script that can do this?? Can anyone help me?

    Here it is, a little clearer:
    I create ads for a firm. We export from Quark as an .eps to an 'In' box. When Distiller sees a file in the 'In' box, it Distills it, using our press settings and creates a .pdf that it then puts in an 'Out' box. What I want the script(s) to do is:
    1) open that .pdf file just after creation (so I can look at it right away and not forget to!)
    2) highlight the 'Out' box so I can remember that there is a new proof to send out to our client
    Any help is REALLY appreciated.

  • I am fresher to Microsoft technet, and also for Windows Powershell Scripting

    Hi All
    i am started Learning Windows Powershell Scripting, kindly suggest me which are the refernce documents i need to refer.
    i need to learn very strong basics.
    thanks in advance.
    Changalaraya reddy

    Hello,
    The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.
    As it's off-topic here, I am moving the question to the
    Windows PowerShell forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Looking For Slide Show Script - Freeware

    Can anyone recommend a freeware script for a simple slide
    show that allows slow dissolve transitions? Something that can be
    imported into DW and used from inside DW. I have one that's almost
    perfect, but does not offer any transitions, just hard edits from
    one slide to the other:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1165474
    Claims they offer transitions but I couldn't find them. Plus
    the transitions are for IE only, and I need it to work in all
    browers, at the very minimum FFX, Safari as well as IE.

    Aside from looking at the pretty transitions, did you read
    the rest of the
    page? See the part where it says "Step 1 - copy and
    paste....."
    Then do Step 2. It just can't get any easier than that.
    Read the bit underneath step 2 and it tells you how the
    script can be used
    multiple times on a page - Again - step 1: you give it a new
    name in the
    javascript file, and add the names and paths of the images
    for the
    consecutive slides you wish to display. Then, again, Step 2 -
    you call the
    slideshow somewhere on your page.
    Without sounding condescending, sit back, read the
    instructions again, and
    have a go at implementing them into your page.
    Upload your efforts, post a link to the page, and we'll be
    able to help you
    further if you need it.
    You can describe what you have, how you want it to work, but
    until we see a
    page live, its a bit hard to help further.
    Last resort, spring for a paid solution to do it all for you
    (which I highly
    recommend) -
    http://www.projectseven.com/products/galleries/ssm/index.htm
    Brendon
    "Fugasi" <[email protected]> wrote in
    message
    news:gju0dl$olu$[email protected]..
    > Brendon-
    >
    > >I've used this one many times before with good
    success:
    >
    > I don't know how to use this, its a bunch of code.
    >
    > 1. Do I C&P this and paste it into my page? Where on
    the page?
    > 2. I actually want to have four separate slide shows
    happening at once on
    > the
    > same page. Will this code allow me to do that?
    > 3. Right now I have four photos in-line horizontally in
    non-css table. I
    > want
    > those four to interchange as a slow dissolve slide show.
    How do I specify
    > that
    > I want the slide show to appear in the table cells?
    >
    > Thanks
    >

  • - Looking for element Fader script...

    Anyone know where I can find a script that will allow an
    element (table,
    div, image or other) to fade in at a controlled rate? I'd use
    it for nav
    menus (making a table or a cell light up progressively on
    mouseover, for
    instance).
    Thanks!

    Have a look at this page:
    http://www.eclipsme.com/tablefade.shtml
    I'm not sure this covers everything you want, in fact
    probably doesn't,
    but is a script I was playing around with a bit. I have no
    idea where I
    got it from, but perhaps it can help.
    Harvey
    Reese wrote:
    > Thanks, but this seems limited to images. I'd like to
    fade a variety of
    > objects (images, tables, divs, etc.)
    >
    > "eclipsme" <[email protected]> wrote in message
    > news:eruve0$ghe$[email protected]..
    >> I have had luck with this. I believe it allows you
    to adjust the interval
    >> between fades and the rate of fade itself, though it
    has been a while
    >> since I played with it. Here is the info from the
    script:
    >>
    >>> * Ultimate Fade-In Slideshow (v1.5): ©
    Dynamic Drive
    >>> (
    http://www.dynamicdrive.com)
    >>> * This notice MUST stay intact for legal use
    >>> * Visit
    http://www.dynamicdrive.com/
    for this script and 100s more.
    >>
    >> Harvey
    >
    >

  • Looking for jquery lightbox script that stretches image to fill viewport

    There are a lot of lightbox scripts out there, but most of them seem to favor static-sized images.
    I'm surprised that I haven't been able to find too many of these scripts allow for images to make maximum use of a viewport's dimensions. In other words, lightbox-style scripts that will fit the target image inside the viewport (while retaining the image's native proportions), whatever size said viewport may be.
    I can easily imagine everyone from graphic designers, to painters, to photographers jumping on such a tool. After all, there's nothing worse than looking at a 500px image on a 1920px display. It makes the work feel small, and by proxy, the work's author look small.
    Granted, for the images to not appear stretched, the native size of the image would have to be larger than needed for most visitors, but portfolio websites aren't high-traffic websites. They're solely visited by potential employers and clients, and loading time isn't much of a concern anymore with today's average home broadband speeds topping 1mb/s.
    Ideally, the script would grey-out the website, and display an image to match 95% of the viewport's X or Y resolution (whatever is smallest) while retaining the image's native proportions.
    Does anyone know where I can find such a script, preferable in jquery (since I'm already using it on my website)?

    Finally found one! -> http://www.shadowbox-js.com
    I've been testing it out, and it does exactly what I described above. It's great.

  • Im Looking for a terminal script which shows the archlogo

    Hi there,
    I have found in the May screenshot thread this terminal script:
    Can anyone tell me where i found this good looking script. I will also make so nice screenshots from my terminal.
    Regards
    FightRight
    Last edited by FightRight (2007-05-12 17:45:54)

    Hello
    Ohh thanks for yours fast replys.
    I have found this Script:
    #!/usr/bin/perl
    use Switch;
    use strict;
    ## Config options ##
    ## What distro logo to use to use, Available "Archlinux Debian None" ##
    my $distro = "Archlinux";
    ## what values to display. Use "OS Kernel DE WM win_theme Theme Font Icons" ##
    my $display = "OS Kernel DE WM Win_theme Theme Icons Font";
    ## Takes a screen shot if set to 0 ##
    my $shot = 1;
    ## Command to run to take screen shot ##
    my $command = "scrot";
    ## What colors to use for the variables. ##
    my $textcolor = "\e[0m";
    ## Prints little debugging messages if set to 0 ##
    my $quite = 0;
    ## Script starts here ##
    ## Define some thing to work with strict ##
    my @line = ();
    my $found = 0;
    my $DE = "NONE";
    my $WM = "NONE";
    ## Hash of WMs and the process they run ##
    my %WMlist = ("Beryl", "beryl",
    "Fluxbox", "fluxbox",
    "Openbox", "openbox",
    "Blackbox", "blackbox",
    "Xfwm4", "xfwm4",
    "Metacity", "metacity",
    "Kwin", "kwin",
    "FVWM", "fvwm",
    "Enlightenment", "enlightenment",
    "IceWM", "icewm",
    "Window Maker", "wmaker",
    "PekWM","pekwm" );
    ## Hash of DEs and the process they run ##
    my %DElist = ("Gnome", "gnome-session",
    "Xfce4", "xfce-mcs-manage",
    "KDE", "ksmserver");
    ## Get Kernel version ##
    if ( $display =~ "Kernel"){
    print "\::$textcolor Finding Kernel version\n" unless $quite == 1;
    my $kernel = `uname -r`;
    $kernel =~ s/\s+/ /g;
    $kernel = " Kernel:$textcolor $kernel";
    push(@line, "$kernel");
    ## Find running processes ##
    print "\::$textcolor Getting processes \n" unless $quite == 1;
    my $processes = `ps -A | awk {'print \$4'}`;
    ## Find DE ##
    while( (my $DEname, my $DEprocess) = each(%DElist) ) {
    print "\::$textcolor Testing $DEname process: $DEprocess \n" unless $quite == 1;
    if ( $processes =~ m/$DEprocess/ ) {
    $DE = $DEname;
    print "\::$textcolor DE found as $DE\n" unless $quite == 1;
    if( $display =~ m/DE/ ) {
    push(@line, " DE:$textcolor $DE");
    last;
    ## Find WM ##
    while( (my $WMname, my $WMprocess) = each(%WMlist) ) {
    print "\::$textcolor Testing $WMname process: $WMprocess \n" unless $quite == 1;
    if ( $processes =~ m/$WMprocess/ ) {
    $WM = $WMname;
    print "\::$textcolor WM found as $WM\n" unless $quite == 1;
    if( $display =~ m/WM/ ) {
    push(@line, " WM:$textcolor $WM");
    last;
    ## Find WM theme ##
    if ( $display =~ m/Win_theme/ ){
    switch($WM) {
    case "Openbox" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.config/openbox/rc.xml")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /<name>(.+)<\/name>/ ) {
    while ( $found == 0 ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    $found = 1;
    close(FILE);
    case "Beryl" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.emerald/themes/schoensyDarkgreen/theme.ini")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /name=(.+)/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    case "Metacity" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    my $gconf = `gconftool-2 -g /apps/metacity/general/theme`;
    print "\::$textcolor $WM theme found as $gconf\n" unless $quite == 1;
    chomp ($gconf);
    push(@line, " WM Theme:$textcolor $gconf");
    case "Fluxbox" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.fluxbox/init")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /session.styleFile:.*\/(.+)/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    case "Blackbox" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.blackboxrc")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /session.styleFile:.*\/(.+)/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    case "Xfwm4" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.config/xfce4/mcs_settings/xfwm4.xml")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /<option name="Xfwm\/ThemeName" type="string" value="(.+)"\/>/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    case "Kwin" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.kde/share/config/kwinrc")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /PluginLib=kwin3_(.+)/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    case "Enlightenment" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    my $remote = `enlightenment_remote -theme-get theme` ;
    if( $remote =~ m/.*FILE="(.+).edj"/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    case "IceWM" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.icewm/theme")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /Theme="(.+)\/.*.theme/ ) {
    while( $found == 0 ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    $found = 1;
    close(FILE);
    case "PekWM" {
    print "\::$textcolor Finding $WM theme\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.pekwm/config")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if( /Theme.*\/(.*)"/ ) {
    print "\::$textcolor $WM theme found as $1\n" unless $quite == 1;
    push(@line, " WM Theme:$textcolor $1");
    close(FILE);
    ## Find Theme Icon ans Font ##
    if ( $display =~ m/[Theme, Icons, Font,]/) {
    switch($DE) {
    case "Gnome" {
    print "\::$textcolor Finding $DE variables\n" unless $quite == 1;
    if ( $display =~ m/Theme/ ) {
    my $gconf = `gconftool-2 -g /desktop/gnome/interface/gtk_theme`;
    chomp ($gconf);
    print "\::$textcolor GTK Theme found as $1\n" unless $quite == 1;
    push(@line, " GTK Theme:$textcolor $gconf");
    if ( $display =~ m/Icons/ ) {
    my $gconf = `gconftool-2 -g /desktop/gnome/interface/icon_theme`;
    chomp ($gconf);
    push(@line, " Icons:$textcolor $gconf");
    if ( $display =~ m/Font/ ) {
    my $gconf = `gconftool-2 -g /desktop/gnome/interface/font_name`;
    chomp ($gconf);
    push(@line, " Font:$textcolor $gconf");
    case "Xfce4" {
    my @sort = ();
    print "\::$textcolor Finding $DE variables\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.config/xfce4/mcs_settings/gtk.xml")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if ( $display =~ m/Theme/ ) {
    if (/<option name="Net\/ThemeName" type="string" value="(.+)"\/>/ ) {
    print "\::$textcolor GTK Theme found as $1\n" unless $quite == 1;
    unshift(@sort, " GTK Theme:$textcolor $1");
    if ( $display =~ m/Icons/ ) {
    if (/<option name="Net\/IconThemeName" type="string" value="(.+)"\/>/ ) {
    print "\::$textcolor Icons found as $1\n" unless $quite == 1;
    unshift(@sort, " Icons:$textcolor $1");
    if ( $display =~ m/Font/ ) {
    if ( /<option name="Gtk\/FontName" type="string" value="(.+)"\/>/ ) {
    print "\::$textcolor Font found as $1\n" unless $quite == 1;
    unshift(@sort, " Font:$textcolor $1");
    close(FILE);
    ## Sort variables so they're ordered "Theme Icon Font" ##
    foreach my $i (@sort) {
    push(@line, "$i");
    case "KDE" {
    print "\::$textcolor Finding $DE variables\n" unless $quite == 1;
    open(FILE, "$ENV{HOME}/.kde/share/config/kdeglobals")
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if ( $display =~ m/Theme/ ) {
    if ( /widgetStyle=(.+)/ ) {
    print "\::$textcolor Wiget Style found as $1\n" unless $quite == 1;
    push(@line, " Wiget Style:$textcolor $1");
    if (/colorScheme=(.+).kcsrc/ ) {
    print "\::$textcolor Color Scheme found as $1\n" unless $quite == 1;
    push(@line, " Color Scheme:$textcolor $1");
    if ( $display =~ m/Icons/ ) {
    if ( /Theme=(.+)/ ) {
    print "\::$textcolor Icons found as $1\n" unless $quite == 1;
    push(@line, " Icons:$textcolor $1");
    if ( $display =~ m/Font/ ) {
    if ( /font=(.+)/ ) {
    my $font = (split/,/, $1)[0];
    print "\::$textcolor Font found as $font\n" unless $quite == 1;
    push(@line, " Font:$textcolor $font");
    close(FILE);
    else {
    my @files = ("$ENV{HOME}/.gtkrc-2.0", "$ENV{HOME}/.gtkrc.mine",);
    foreach my $file (@files) {
    if ( -e $file ) {
    print "\::$textcolor Opening $file\n" unless $quite == 1;
    open(FILE, $file)
    || die "\e[0;31m<Failed>\n";
    while( <FILE> ) {
    if ( $display =~ m/Theme/ ) {
    if( /include ".*themes\/(.+)\/gtk-(1|2)\.0\/gtkrc"/ ){
    print "\::$textcolor GTK theme found as $1\n" unless $quite == 1;
    push(@line, " GTK Theme:$textcolor $1");
    if ( $display =~ m/Icons/ ) {
    if( /.*gtk-icon-theme-name.*"(.+)"/ ) {
    print "\::$textcolor Icons found as $1\n" unless $quite == 1;
    push(@line, " Icons:$textcolor $1");
    if ( $display =~ m/Font/ ) {
    if( /.*gtk-font-name.*"(.+)"/ ) {
    print "\::$textcolor Font found as $1\n" unless $quite == 1;
    push(@line, " Font:$textcolor $1");
    close(FILE);
    ## Display the system info ##
    if ( $distro =~ m/Archlinux/ ) {
    ## Get Archlinux version ##
    if ( $display =~ "OS"){
    print "\::$textcolor Finding Archlinux version\n" unless $quite == 1;
    my $version = `cat /etc/arch-release`;
    $version =~ s/\s+/ /g;
    $version = " OS:$textcolor $version";
    unshift(@line, "$version");
    my $c1 = "\e[0;32m";
    my $c2 = "\e[1;32m";
    print "$c1 __
    $c1 _=(SDGJT=_
    $c1 _GTDJHGGFCVS) $c1@line[0]
    $c1 ,GTDJGGDTDFBGX0 $c1@line[1]
    $c1 JDJDIJHRORVFSBSVL$c2-=+=,_ $c1@line[2]
    $c1 IJFDUFHJNXIXCDXDSV,$c2 \"DEBL $c1@line[3]
    $c1 [LKDSDJTDU=OUSCSBFLD.$c2 '?ZWX, $c1@line[4]
    $c1 ,LMDSDSWH' \`DCBOSI$c2 DRDS], $c1@line[5]
    $c1 SDDFDFH' !YEWD,$c2 )HDROD $c1@line[6]
    $c1 !KMDOCG &GSU|$c2\_GFHRGO' $c1@line[7]
    $c1 HKLSGP'$c2 __$c1\TKM0$c2\GHRBV)' $c1@line[8]
    $c1 JSNRVW'$c2 __+MNAEC$c1\IOI,$c2\BN'
    $c1 HELK['$c2 __,=OFFXCBGHC$c1\FD)
    $c1 ?KGHE $c2\_-#DASDFLSV='$c1 'EF
    $c1 'EHTI !H
    $c1 \`0F' '!
    \e[0m";
    if ( $distro =~ m/None/ ) {
    my $color = "\e[0;34m";
    foreach my $filled ( @line ) {
    print "$color $filled\n"
    if ( $distro =~ m/Debian/ ) {
    ## Get Debian version ##
    if ( $display =~ "OS"){
    print "\::$textcolor Finding Debian version\n" unless $quite == 1;
    my $version = `cat /etc/Debian_release`;
    $version =~ s/\s+/ /g;
    $version = " OS:$textcolor $version";
    unshift(@line, "$version");
    my $c1 = "\e[0;31m";
    print "
    $c1 _,met\$\$\$\$\$gg.
    $c1 ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P.
    $c1 ,g\$\$P\"\" \"\"\"Y\$\$.\". @line[0]
    $c1 ,\$\$P' \`\$\$\$. @line[1]
    $c1',\$\$P ,ggs. \`\$\$b: @line[2]
    $c1\`d\$\$' ,\$P\"' . \$\$\$ @line[3]
    $c1 \$\$P d\$' , \$\$P @line[4]
    $c1 \$\$: \$\$. - ,d\$\$' @line[5]
    $c1 \$\$\; Y\$b._ _,d\$P' @line[6]
    $c1 Y\$\$. \`.\`\"Y\$\$\$\$P\"' @line[7]
    $c1 \`\$\$b \"-.__ @line[8]
    $c1 \`Y\$\$
    $c1 \`Y\$\$.
    $c1 \`\$\$b.
    $c1 \`Y\$\$b.
    $c1 \`\"Y\$b._
    $c1 \`\"\"\"\"
    \e[0m";
    ## Run screen shot graper ##
    `$command` unless $shot != 0;
    I think that seems to be what you mean. Thanks for helping me.
    Regards

  • Looking for some DBA scripts.

    I am a DBA. Can any off u send me few sql scripts which would help me in monitoring the DBA activities, Like
    a) Monitoring the Disk Usage for a particular Database.
    b) How to check the rollback segment is increasing or not.
    c)In NT where the datafiles stored (i.e. in which table)
    and if any more u come across.
    My email add is [email protected]

    Did you ever get any info about this question? I am also a new DBA and trying to set up some monitoring scripts that will monitor the disk usage of our table spaces. Any help will be appreciated.
    Thanks,
    Susan Williams

  • I am looking for FLASH Action Script Assistance.

    What's the best source to find a person to assist with Compiler errors related to Flash scripts?

    Compiler errors: I have attempted to correct Source according to the suggestions by the compiler errors to no avail.
    The SOURCE CODE appears below the COMPILER ERRORS.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 32, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 46, Column 10
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 62, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 77, Column 10
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 94, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 95, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 95, Column 21
    1084: Syntax error: expecting rightparen before leftbrace.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 125, Column 32
    1084: Syntax error: expecting rightparen before and.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 127, Column 36
    1084: Syntax error: expecting rightparen before and.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 147, Column 28
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 147, Column 34
    1084: Syntax error: expecting rightparen before _root.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 170, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 171, Column 17
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 171, Column 21
    1084: Syntax error: expecting rightparen before leftbrace.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 186, Column 32
    1084: Syntax error: expecting rightparen before and.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 188, Column 36
    1084: Syntax error: expecting rightparen before and.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 208, Column 28
    1084: Syntax error: expecting identifier before greaterthan.
    Symbol 'slidingMenu', Layer 'as', Frame 1, Line 208, Column 34
    1084: Syntax error: expecting rightparen before _root.
    ========================================================================================== ================================
    Source for slidingMenu
    slidingMenu.RollOverBoxes = function(boxNumber:Number) {
    if (_root.link<>boxNumber) {
    _root.my_motion_finished = 0;
    var cBox:MovieClip = eval('box'+boxNumber);
    cBox.title_main.gotoAndPlay("s1");
    for (var i = 1; i<=7; i++) {
    var cBox:MovieClip = eval('box'+i);
    xkoord = cBox.my_x;
    if (_root.splash_flag == 1) {
    if (boxNumber == 1) {
    slidingMenu.move_all(126);
    } else {
    slidingMenu.move_all(-126);
    if (i<>boxNumber) {
    if (i<boxNumber) {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord-small_height_over, time_for_animation2, false);
    cBox.my_x = xkoord-small_height_over;
    } else {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord+small_height_over, time_for_animation2, false);
    cBox.my_x = xkoord+small_height_over;
    _root.myTween.onMotionFinished = function() {
    _root.my_motion_finished = 1;
    slidingMenu.RollOutBoxes = function(boxNumber:Number) {
    if (_root.link<>boxNumber) {
    _root.my_motion_finished2 = 0;
    var cBox:MovieClip = eval('box'+boxNumber);
    //cBox.title_main.gotoAndPlay("s2");
    cBox.title_main.gotoAndPlay("s2");
    for (var i = 1; i<=7; i++) {
    var cBox:MovieClip = eval('box'+i);
    xkoord = cBox.my_x;
    if (_root.splash_flag == 1) {
    if (boxNumber == 1) {
    slidingMenu.move_all(-126);
    } else {
    slidingMenu.move_all(-126);
    if (i<>boxNumber) {
    if (i<boxNumber) {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord+small_height_over, time_for_animation2, false);
    cBox.my_x = xkoord+small_height_over;
    } else {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, xkoord-small_height_over, time_for_animation2, false);
    cBox.my_x = xkoord-small_height_over;
    _root.myTween.onMotionFinished = function() {
    _root.my_motion_finished2 = 1;
    // Functions
    slidingMenu.moveBoxes = function(boxNumber:Number) {
    if (_root.link<>boxNumber) {
    if (boxNumber<>7) {
    small_height = 568;
    small_height_over = 0;
    } else {
    small_height = 208;
    small_height_over = 360;
    if (boxNumber == 7) {
    _root.splash_flag = 1;
    slidingMenu.move_all(-126);
    } else {
    _root.splash_flag = 0;
    if (boxNumber == 5) {
    //slidingMenu.move_all(196-boxNumber*593+780);
    slidingMenu.move_all(136-(boxNumber-1)*593);
    } else {
    if (boxNumber == 1) {
    //slidingMenu.move_all(196-boxNumber*593+320);
    slidingMenu.move_all(136-(boxNumber-1)*593);
    } else {
    slidingMenu.move_all(136-(boxNumber-1)*593);
    _root.my_motion_finished3 = 0;
    k = 1;
    //-1239.0
    //eval('box'+_root.link).title_main.gotoAndPlay("s2");
    for (var i = 1; i<=7; i++) {
    var cBox:MovieClip = eval('box'+i);
    if (_root.start_status == 0 and i<>boxNumber) {
    //cBox.title_main.gotoAndPlay("s3");
    } else if (_root.link_prev == 0 and i == boxNumber) {
    //cBox.title_main.gotoAndPlay("s6");
    if (i == boxNumber) {
    _root.link_prev = _root.link;
    _root.link = boxNumber;
    cBox.pages.gotoAndPlay("s1");
    //if (_root.link<>0) {
    //cBox.title_main.gotoAndPlay("s2");
    var cBox2:MovieClip = eval('box'+_root.link_prev);
    cBox2.title_main.gotoAndPlay("s2");
    _root.pic_num_prev = _root.pic_num;
    _root.pic_num = 1;
    _root.pic_num2_prev = _root.pic_num2;
    _root.pic_num2 = 1;
    _root.pic_num3_prev = _root.pic_num3;
    _root.pic_num3 = 1;
    _root.pic_num4_prev = _root.pic_num4;
    _root.pic_num4 = 1;
    if (_root.pic_num_prev<>1 or _root.pic_num2_prev<>1 or _root.pic_num3_prev<>1 or _root.pic_num4_prev<>1) {
    cBox2.title_main.area.gall.play();
    cBox2.pages.gotoAndPlay(cBox2.pages._totalframes-cBox2.pages._currentframe);
    _root.scroller.gotoAndStop(2);
    xkoord = cBox.my_x;
    if (i<=boxNumber) {
    _root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, (k)*(small_height)-200, time_for_animation, false);
    cBox.my_x = (k)*(small_height)-200;
    } else {
    _root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, (k)*(small_height)+big_height-232, time_for_animation, false);
    cBox.my_x = (k)*(small_height)+big_height-232;
    _root.myTween.onMotionFinished = function() {
    _root.my_motion_finished3 = 1;
    k++;
    _root.start_status = 1;
    slidingMenu.appearBoxes = function(boxNumber:Number) {
    if (_root.link<>boxNumber) {
    if (boxNumber<>7) {
    if (boxNumber == 1) {
    slidingMenu.move_all(396-boxNumber*93);
    } else {
    slidingMenu.move_all(336-boxNumber*93);
    } else {
    slidingMenu.move_all(-426);
    _root.my_motion_finished3 = 0;
    k = 1;
    //-1239.0
    //eval('box'+_root.link).title_main.gotoAndPlay("s2");
    for (var i = 1; i<=7; i++) {
    var cBox:MovieClip = eval('box'+i);
    if (_root.start_status == 0 and i<>boxNumber) {
    //cBox.title_main.gotoAndPlay("s3");
    } else if (_root.link_prev == 0 and i == boxNumber) {
    //cBox.title_main.gotoAndPlay("s6");
    if (i == boxNumber) {
    _root.link_prev = _root.link;
    _root.link = boxNumber;
    cBox.pages.gotoAndPlay("s1");
    //if (_root.link<>0) {
    //cBox.title_main.gotoAndPlay("s2");
    var cBox2:MovieClip = eval('box'+_root.link_prev);
    cBox2.title_main.gotoAndPlay("s2");
    _root.pic_num_prev = _root.pic_num;
    _root.pic_num = 1;
    _root.pic_num2_prev = _root.pic_num2;
    _root.pic_num2 = 1;
    _root.pic_num3_prev = _root.pic_num3;
    _root.pic_num3 = 1;
    _root.pic_num4_prev = _root.pic_num4;
    _root.pic_num4 = 1;
    if (_root.pic_num_prev<>1 or _root.pic_num2_prev<>1 or _root.pic_num3_prev<>1 or _root.pic_num4_prev<>1) {
    cBox2.title_main.area.gall.play();
    cBox2.pages.gotoAndPlay(cBox2.pages._totalframes-cBox2.pages._currentframe);
    _root.scroller.gotoAndStop(2);
    xkoord = cBox.my_x;
    if (i<=boxNumber) {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, (k)*(small_height)-200, 5+int(70-k*5), false);
    cBox.my_x = (k)*(small_height)-200;
    } else {
    _root.myTween = new Tween(cBox, "_x", Strong.easeOut, cBox._x, (k)*(small_height)+big_height-232, time_for_animation+int(k*20), false);
    cBox.my_x = (k)*(small_height)+big_height-232;
    _root.myTween.onMotionFinished = function() {
    _root.my_motion_finished3 = 1;
    k++;
    _root.start_status = 1;
    slidingMenu.StopBoxes = function() {
    for (var i = 1; i<=7; i++) {
    var cBox:MovieClip = eval('box'+i);
    //_root.myTween = new Tween(cBox, "_x", Back.easeOut, cBox._x, xkoord-small_height_over, 1, false);
    _root.myTween.continueTo(1, 1);
    slidingMenu.move_all = function(num) {
    var cBox:MovieClip = _root.box1;
    _root.myTween_move_all = new Tween(cBox, "_x", Back.easeOut, cBox._x, num, 25, false);
    //slidingMenu.moveBoxes();

  • Looking for a utility/script to send app window to/from different displays

    Hi,
    Is there any utility to send an app window from/to a specific display?
    i.e. I have four displays Dell3007WFPHC (Center 2560x1600);
    Dell2001FP( 1200x1600right) ;
    Dell2001FP(1200x1600 left);
    and a Cintiq 12WX (bottom center1280x800)
    I want to move and fit photoshop app window from Dell3007WFPHC (Center) to cintiq by pressing one key. Does such a utility or script already exist?
    Thanks in advance, Behrooz

    For scripting stuff see the AppleScript and Unix forums under OS X Technologies.

  • Looking for privilege reporting script

    Some time back (quite some time back, actually!) I had a script that would report all the privileges granted to or inherited by a user or role. It recursed through all of the nested roles to develop the list. I seem to have lost that but hoped someone would know of it or something like it. It seems like it originally came from Pete Finnigan, but I can't find it on his site.

    jgarry wrote:
    [This one?|http://www.petefinnigan.com/find_all_privs.sql]
    That would be the one!
    Thanks.

  • Looking for PowerShell Script

    I'm looking for a PowerShell script that I can run and will copy a file with today's date yyyymmdd.txt  to a remote location renaming it to XXXXXX.log and over writing the existing *.log.   
    Sounds simple, but as a newbe to PS, I could use some help.

    Check out: Get-Help Copy-Item -Full
    That cmdlet can copy a file from one place to another, rename it, and also overwrite a pre-existing file (-Force).
    Also check out Get-Help about_Variables for info on how variables work in PowerShell. You can use Get-Date -Format yyyymmdd to get the values you'll need for your source file name, then save it to a variable to use with Copy-Item.
    I don't know what XXXXXX.log represents, but that might just need to be another variable.
    Does that help?

  • Looking for Script Exchange-2007: Import-Mailbox Calendar Folder on multiple mailboxes {Distribution Group}

    Hi,
    I'm looking for a PowerShell script which will import a Calendar events into student's mailbox (Calendar). Those students are located in a distribution group and I would like to target the distribution group; I'm trying to simulate what I want to achieve
    in the below code example, I would appreciate if anyone jump in and advise.
    $Users = Import-Csv C:\users.csv | ForEach-Object{Get-DistributionGroup -Identity SC-1213} | Import-Mailbox -Identity $Users -PSTFolderPath c:\Calendar.pst -IncludeFolders '\Calendar' -StartDate -EndDate
    Much appreciated..
    Hussain

    The logic doesn't work unless you are using StartDate and EndDate for the period when you change the item.  As I said above, StartDate and EndDate are not the times when the meeting starts and ends - they are the times that the item was either added
    or modified in the mailbox.  Your filter was trying to pull items that were in the future.
    And as I also said above, if you import a modified item, the original is
    not going to be updated.  You will have a duplicate meeting
    on the calendar.  You would have to remove the original
    and import the updated item if this was how you wished to manage the updates.  This is not nearly as effective as
    sending meeting requests and updating those meetings.
    For example, if we do things the way you are doing them, and we add a "Student Appreciation Bonfire" meeting to the calendar for April 12 at "The Quad", we would do the following:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the PST calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You import the PST into everyone's calendar
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in your PST
    Since there are other calendar items in the PST, you import the update using StartDate of March 12 and EndDate of March 13 - the date that you changed the item, not the date the item occurs
    At this point, all users have two meetings on their calendar - the original and the update
    If, instead of doing it this way, you create a Student Actvities Calendar mailbox, you would handle it this way:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the Corporate calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You invite everyone to the meeting
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in that calendar and send out the update
    At this point, all users have only the one meeting on their calendar - the update
    Using the PST as the source for the meetings would work only for items that
    will not be changed - holidays are a good example.

Maybe you are looking for

  • DVD drive cannot read some of my data dvd's

    When I put in some of my data dvd, it reads it as a blank media. It is strange. I can read data of the exact same DVD in another mac computer. The problem is I can read some, but some I cannot read. Burning is no problem / no errors. Any thoughts wou

  • Upgraded to 10.7.3 on iPad mini. Now iTunes shuffle appears to have no way to turn off . Anybody?...please?...

    Hi, is any body out there able to tell me how to turn off the shuffle feature in iTunes on my iPad mini. ( iOS 10.7.3) I wasn't even aware I had turned it on. It just seemed to turn itself on after a software update. Thanks for any help.

  • Help! DW8 won't load after Windows reinstall

    A couple of days ago I was obliged to to reinstall Windows XP Pro and all of my applications, including Dreamweaver 8. There have been no other problems, and DW worked fine as usual just after the reinstall, but since then it has refused to load - th

  • Cursor with in a REF CURSOR

    Hi All, I am having a REF cursor returned by a function which contains a CURSOR with in its select statement. Can any one please let me know how to fetch these values into variable for further processing. A sample query for my REF CURSOR is Select de

  • How to remove the autogenerated code in F M- 'MAT_MOVE_BMMH1_MARA'

    Hi, I added the custom fields in MARA to upload the LSMW.So i added the enhancement in LSMW program RMDATIND.It is working fine now.Then,i need to remove the code from that.where i could removed only the enhancement.(Note: when the enhancement is add